Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Activates a document with the specified moniker and logical view, if the document is open.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Function ActivateDocumentIfOpen ( _
documentMoniker As String, _
logicalView As Guid _
) As Boolean
public bool ActivateDocumentIfOpen(
string documentMoniker,
Guid logicalView
)
public:
bool ActivateDocumentIfOpen(
String^ documentMoniker,
Guid logicalView
)
member ActivateDocumentIfOpen :
documentMoniker:string *
logicalView:Guid -> bool
public function ActivateDocumentIfOpen(
documentMoniker : String,
logicalView : Guid
) : boolean
Parameters
documentMoniker
Type: System.StringMoniker for the document to activate.
logicalView
Type: System.GuidThe identifier of a logical view.
Return Value
Type: System.Boolean
Returns true if the document is open; otherwise returns false.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The documentMoniker parameter is null. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataViewHierarchyAccessor Class