Partager via


IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock Method (UInt32, UInt32, UInt32, UInt32)

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Déclaration
Function OnBeforeLastDocumentUnlock ( _
    docCookie As UInteger, _
    dwRDTLockType As UInteger, _
    dwReadLocksRemaining As UInteger, _
    dwEditLocksRemaining As UInteger _
) As Integer
'Utilisation
Dim instance As IVsRunningDocTableEvents2
Dim docCookie As UInteger
Dim dwRDTLockType As UInteger
Dim dwReadLocksRemaining As UInteger
Dim dwEditLocksRemaining As UInteger
Dim returnValue As Integer

returnValue = instance.OnBeforeLastDocumentUnlock(docCookie, _
    dwRDTLockType, dwReadLocksRemaining, _
    dwEditLocksRemaining)
int OnBeforeLastDocumentUnlock(
    uint docCookie,
    uint dwRDTLockType,
    uint dwReadLocksRemaining,
    uint dwEditLocksRemaining
)
int OnBeforeLastDocumentUnlock(
    [InAttribute] unsigned int docCookie, 
    [InAttribute] unsigned int dwRDTLockType, 
    [InAttribute] unsigned int dwReadLocksRemaining, 
    [InAttribute] unsigned int dwEditLocksRemaining
)
abstract OnBeforeLastDocumentUnlock : 
        docCookie:uint32 * 
        dwRDTLockType:uint32 * 
        dwReadLocksRemaining:uint32 * 
        dwEditLocksRemaining:uint32 -> int 
function OnBeforeLastDocumentUnlock(
    docCookie : uint, 
    dwRDTLockType : uint, 
    dwReadLocksRemaining : uint, 
    dwEditLocksRemaining : uint
) : int

Parameters

  • docCookie
    Type: System.UInt32
    [in] Abstract value representing the document whose attributes have been changed.
  • dwRDTLockType
    Type: System.UInt32
    [in] Type of lock being released. Values are taken from the _VSRDTFLAGS enumeration.
  • dwReadLocksRemaining
    Type: System.UInt32
    [in] Specifies the number of read locks remaining.
  • dwEditLocksRemaining
    Type: System.UInt32
    [in] Specifies 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.

Implements

IVsRunningDocTableEvents.OnBeforeLastDocumentUnlock(UInt32, UInt32, UInt32, UInt32)

Remarks

This method is called just before the last read lock is released on the document and just before the last edit lock is released.

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsRunningDocTableEvents2 Interface

IVsRunningDocTableEvents2 Members

OnBeforeLastDocumentUnlock Overload

Microsoft.VisualStudio.Shell.Interop Namespace