IVsRunningDocumentTable.UnregisterDocumentLockHolder Method

Unregisters a document lock holder in the running document table.

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

Syntax

'Declaration
Function UnregisterDocumentLockHolder ( _
    dwLHCookie As UInteger _
) As Integer
int UnregisterDocumentLockHolder(
    uint dwLHCookie
)
int UnregisterDocumentLockHolder(
    unsigned int dwLHCookie
)
abstract UnregisterDocumentLockHolder : 
        dwLHCookie:uint32 -> int
function UnregisterDocumentLockHolder(
    dwLHCookie : uint
) : int

Parameters

  • dwLHCookie
    Type: System.UInt32

    [in] Unique identifier for the document lock holder. See Remarks.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocumentTable::UnregisterDocumentLockHolder(
   VSCOOKIE dwLHCookie
);

The dwLHCookie parameter is the same value returned from the RegisterDocumentLockHolder method.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable Interface

Microsoft.VisualStudio.Shell.Interop Namespace