Share via


IVsRunningDocTableEvents3.OnAfterFirstDocumentLock Method

Definition

Called after application of the first lock of the specified type to a document in the Running Document Table (RDT).

public:
 int OnAfterFirstDocumentLock(System::UInt32 docCookie, System::UInt32 dwRDTLockType, System::UInt32 dwReadLocksRemaining, System::UInt32 dwEditLocksRemaining);
public:
 int OnAfterFirstDocumentLock(unsigned int docCookie, unsigned int dwRDTLockType, unsigned int dwReadLocksRemaining, unsigned int dwEditLocksRemaining);
int OnAfterFirstDocumentLock(unsigned int docCookie, unsigned int dwRDTLockType, unsigned int dwReadLocksRemaining, unsigned int dwEditLocksRemaining);
public int OnAfterFirstDocumentLock (uint docCookie, uint dwRDTLockType, uint dwReadLocksRemaining, uint dwEditLocksRemaining);
abstract member OnAfterFirstDocumentLock : uint32 * uint32 * uint32 * uint32 -> int
Public Function OnAfterFirstDocumentLock (docCookie As UInteger, dwRDTLockType As UInteger, dwReadLocksRemaining As UInteger, dwEditLocksRemaining As UInteger) As Integer

Parameters

docCookie
UInt32

[in] Abstract value representing the document whose attributes have been changed.

dwRDTLockType
UInt32

[in] The document lock type. Values are taken from the _VSRDTFLAGS enumeration.

dwReadLocksRemaining
UInt32

[in] Specifies the number of remaining read locks.

dwEditLocksRemaining
UInt32

[in] Specifies the number of remaining edit locks.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocTableEvents3::OnAfterFirstDocumentLock(  
   [in] VSCOOKIE docCookie,  
   [in] VSRDTFLAGS dwRDTLockType,  
   [in] DWORD dwReadLocksRemaining,  
   [in] DWORD dwEditLocksRemaining  
);  

Applies to