DataViewHierarchyAccessor.IsDocumentOpen Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IsDocumentOpen(String) |
Retrieves a Boolean value that indicates whether a document with a particular moniker is currently open. |
IsDocumentOpen(String, Guid) |
Retrieves a Boolean value that indicates whether a document with a particular moniker and logical view is currently open. |
IsDocumentOpen(String)
Retrieves a Boolean value that indicates whether a document with a particular moniker is currently open.
public:
bool IsDocumentOpen(System::String ^ documentMoniker);
public bool IsDocumentOpen (string documentMoniker);
member this.IsDocumentOpen : string -> bool
Public Function IsDocumentOpen (documentMoniker As String) As Boolean
Parameters
- documentMoniker
- String
A document moniker.
Returns
Returns true if the specified document is open; otherwise returns false.
Exceptions
The documentMoniker
parameter is null.
Applies to
IsDocumentOpen(String, Guid)
Retrieves a Boolean value that indicates whether a document with a particular moniker and logical view is currently open.
public:
bool IsDocumentOpen(System::String ^ documentMoniker, Guid logicalView);
public bool IsDocumentOpen (string documentMoniker, Guid logicalView);
member this.IsDocumentOpen : string * Guid -> bool
Public Function IsDocumentOpen (documentMoniker As String, logicalView As Guid) As Boolean
Parameters
- documentMoniker
- String
A document moniker.
- logicalView
- Guid
A unique identifier of a logical view.
Returns
Returns true if the specified document is open; otherwise returns false.
Exceptions
The documentMoniker
parameter is null.