IVsRunningDocumentTable4.GetDocumentMoniker Method
This is functionally identical to calling IVsRunningDocumentTable.GetDocumentInfo and requesting only the moniker, but it is easier to consume from managed code. In managed code it is impossible to request the flags without also requesting all of the other information, and requesting all of the other information can result in the potentially unnecessary initialization of an RDT_PendingInitialization document.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)
Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Function GetDocumentMoniker ( _
cookie As UInteger _
) As String
string GetDocumentMoniker(
uint cookie
)
String^ GetDocumentMoniker(
[InAttribute] unsigned int cookie
)
abstract GetDocumentMoniker :
cookie:uint32 -> string
function GetDocumentMoniker(
cookie : uint
) : String
Parameters
cookie
Type: UInt32The document cookie.
Return Value
Type: String
The moniker.
.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.