Compartir a través de


IVsRunningDocTableEvents3.OnAfterFirstDocumentLock Method

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

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

Syntax

'Declaration
Function OnAfterFirstDocumentLock ( _
    docCookie As UInteger, _
    dwRDTLockType As UInteger, _
    dwReadLocksRemaining As UInteger, _
    dwEditLocksRemaining As UInteger _
) As Integer
int OnAfterFirstDocumentLock(
    uint docCookie,
    uint dwRDTLockType,
    uint dwReadLocksRemaining,
    uint dwEditLocksRemaining
)
int OnAfterFirstDocumentLock(
    [InAttribute] unsigned int docCookie, 
    [InAttribute] unsigned int dwRDTLockType, 
    [InAttribute] unsigned int dwReadLocksRemaining, 
    [InAttribute] unsigned int dwEditLocksRemaining
)
abstract OnAfterFirstDocumentLock : 
        docCookie:uint32 * 
        dwRDTLockType:uint32 * 
        dwReadLocksRemaining:uint32 * 
        dwEditLocksRemaining:uint32 -> int
function OnAfterFirstDocumentLock(
    docCookie : uint, 
    dwRDTLockType : uint, 
    dwReadLocksRemaining : uint, 
    dwEditLocksRemaining : uint
) : int

Parameters

  • docCookie
    Type: UInt32

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

  • dwRDTLockType
    Type: UInt32

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

  • dwReadLocksRemaining
    Type: UInt32

    [in] Specifies the number of remaining read locks.

  • dwEditLocksRemaining
    Type: UInt32

    [in] Specifies the number of remaining edit locks.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsRunningDocTableEvents3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace