次の方法で共有


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

'宣言
Function UnregisterDocumentLockHolder ( _
    dwLHCookie As UInteger _
) As Integer
'使用
Dim instance As IVsRunningDocumentTable
Dim dwLHCookie As UInteger
Dim returnValue As Integer

returnValue = instance.UnregisterDocumentLockHolder(dwLHCookie)
int UnregisterDocumentLockHolder(
    uint dwLHCookie
)
int UnregisterDocumentLockHolder(
    unsigned int dwLHCookie
)
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.

Permissions

See Also

Reference

IVsRunningDocumentTable Interface

IVsRunningDocumentTable Members

Microsoft.VisualStudio.Shell.Interop Namespace