Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves a Boolean value that indicates whether a document with a particular moniker and logical view is currently open.
Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Function IsDocumentOpen ( _
    documentMoniker As String, _
    logicalView As Guid _
) As Boolean
public bool IsDocumentOpen(
    string documentMoniker,
    Guid logicalView
)
public:
bool IsDocumentOpen(
    String^ documentMoniker, 
    Guid logicalView
)
member IsDocumentOpen : 
        documentMoniker:string * 
        logicalView:Guid -> bool 
public function IsDocumentOpen(
    documentMoniker : String, 
    logicalView : Guid
) : boolean
Parameters
- documentMoniker
 Type: System.String
 A document moniker.
- logicalView
 Type: System.Guid
 A unique identifier of a logical view.
Return Value
Type: System.Boolean
Returns true if the specified 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.