次の方法で共有


IVsRunningDocumentTable4.GetDocumentReadLockCount(UInt32) Method

Definition

This is functionally identical to calling IVsRunningDocumentTable.GetDocumentInfo and requesting only the read lock count, 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.

public:
 System::UInt32 GetDocumentReadLockCount(System::UInt32 cookie);
public:
 unsigned int GetDocumentReadLockCount(unsigned int cookie);
unsigned int GetDocumentReadLockCount(unsigned int cookie);
public uint GetDocumentReadLockCount (uint cookie);
abstract member GetDocumentReadLockCount : uint32 -> uint32
Public Function GetDocumentReadLockCount (cookie As UInteger) As UInteger

Parameters

cookie
UInt32

The cookie.

Returns

The number of outstanding read locks for the document.

Applies to