다음을 통해 공유


DataViewHierarchyAccessor.ActivateDocumentIfOpen Method

Definition

Overloads

ActivateDocumentIfOpen(String)

Activates a document with the specified moniker, if the document is open.

ActivateDocumentIfOpen(String, Guid)

Activates a document with the specified moniker and logical view, if the document is open.

ActivateDocumentIfOpen(String)

Activates a document with the specified moniker, if the document is open.

public:
 bool ActivateDocumentIfOpen(System::String ^ documentMoniker);
public bool ActivateDocumentIfOpen (string documentMoniker);
member this.ActivateDocumentIfOpen : string -> bool
Public Function ActivateDocumentIfOpen (documentMoniker As String) As Boolean

Parameters

documentMoniker
String

Moniker for the document to activate.

Returns

Returns true if the document is open; otherwise returns false.

Exceptions

The documentMoniker parameter is null.

Applies to

ActivateDocumentIfOpen(String, Guid)

Activates a document with the specified moniker and logical view, if the document is open.

public:
 bool ActivateDocumentIfOpen(System::String ^ documentMoniker, Guid logicalView);
public bool ActivateDocumentIfOpen (string documentMoniker, Guid logicalView);
member this.ActivateDocumentIfOpen : string * Guid -> bool
Public Function ActivateDocumentIfOpen (documentMoniker As String, logicalView As Guid) As Boolean

Parameters

documentMoniker
String

Moniker for the document to activate.

logicalView
Guid

The identifier of a logical view.

Returns

Returns true if the document is open; otherwise returns false.

Exceptions

The documentMoniker parameter is null.

Applies to