DesignerDocDataService::IVsRunningDocTableEvents::OnAfterFirstDocumentLock Method (UInt32, UInt32, UInt32, UInt32)
Visual Studio 2015
Called after the first lock of the specified type is applied to the specified document in the Running Document Table (RDT).
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
private: virtual int OnAfterFirstDocumentLock( unsigned int docCookie, unsigned int lockType, unsigned int readLocksRemaining, unsigned int editLocksRemaining ) sealed = IVsRunningDocTableEvents::OnAfterFirstDocumentLock
Parameters
- docCookie
-
Type:
System::UInt32
The identifier of the document data object in the Running Document Table.
- lockType
-
Type:
System::UInt32
A T:Microsoft.VisualStudio.Shell.Interop.__VSRDTFLAGS value specifying the lock type.
- readLocksRemaining
-
Type:
System::UInt32
The number of read locks remaining.
- editLocksRemaining
-
Type:
System::UInt32
The number of edit locks remaining.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This method registers a lock holder on the primary document data object once the lock has been acquired.
Show: