IVsRunningDocumentTable4::GetDocumentCookie Method (String^)

 

This is functionally identical to calling IVsRunningDocumentTable.FindAndLockDocument with RDT_NoLock and requesting only the cookie, 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
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)

unsigned int GetDocumentCookie(
	String^ moniker
)

Parameters

moniker
Type: System::String^

The moniker.

Return Value

Type: System::UInt32

The cookie.

Return to top
Show: