DesignerDocDataService::IVsRunningDocTableEvents2::OnBeforeLastDocumentUnlock Method (UInt32, UInt32, UInt32, UInt32)

 

Called before the last lock of the specified type is released on the specified document in the Running Document Table (RDT).

Namespace:   Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

private:
virtual int OnBeforeLastDocumentUnlock(
	unsigned int docCookie,
	unsigned int lockType,
	unsigned int readLocksRemaining,
	unsigned int editLocksRemaining
) sealed = IVsRunningDocTableEvents2::OnBeforeLastDocumentUnlock

Parameters

docCookie
Type: System::UInt32

The identifier of the document data object in the Running Document Table.

lockType
Type: System::UInt32

T:Microsoft.VisualStudio.Shell.Interop.__VSRDTFLAGS values specifying the type of lock being released.

readLocksRemaining
Type: System::UInt32

The number of read locks remaining.

editLocksRemaining
Type: System::UInt32

The number of edit locks remaining.

Return Value

Type: System::Int32

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

Return to top
Show: