IMonitorSelectionService.CurrentDocument Property
Gets the active document.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
ReadOnly Property CurrentDocument As Object
Object CurrentDocument { get; }
property Object^ CurrentDocument {
Object^ get ();
}
abstract CurrentDocument : Object with get
function get CurrentDocument () : Object
Property Value
Type: System.Object
The active document.
Remarks
This property also tracks the tool windows that are assigned to the document.
The active document usually implements the IVsPersistDocData2 interface.
.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.