다음을 통해 공유


DesignerDocDataService.IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock Method

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)

Syntax

‘선언
Private Function OnBeforeLastDocumentUnlock ( _
    docCookie As UInteger, _
    lockType As UInteger, _
    readLocksRemaining As UInteger, _
    editLocksRemaining As UInteger _
) As Integer Implements IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock
int IVsRunningDocTableEvents2.OnBeforeLastDocumentUnlock(
    uint docCookie,
    uint lockType,
    uint readLocksRemaining,
    uint editLocksRemaining
)

Parameters

  • docCookie
    Type: System.UInt32
    The identifier of the document data object in the Running Document Table.
  • lockType
    Type: System.UInt32
    __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.

Implements

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

Remarks

This method calls OnBeforeLastDocumentUnlock.

.NET Framework Security

See Also

Reference

DesignerDocDataService Class

Microsoft.VisualStudio.Shell.Design.Serialization Namespace