Partager via


RunningDocumentTable.UnlockDocument Method

Releases a read or edit lock on the open document.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

'Déclaration
<CLSCompliantAttribute(False)> _
Public Sub UnlockDocument ( _
    lockType As _VSRDTFLAGS, _
    cookie As UInteger _
)
'Utilisation
Dim instance As RunningDocumentTable
Dim lockType As _VSRDTFLAGS
Dim cookie As UInteger

instance.UnlockDocument(lockType, cookie)
[CLSCompliantAttribute(false)]
public void UnlockDocument(
    _VSRDTFLAGS lockType,
    uint cookie
)
[CLSCompliantAttribute(false)]
public:
void UnlockDocument(
    _VSRDTFLAGS lockType, 
    unsigned int cookie
)
[<CLSCompliantAttribute(false)>]
member UnlockDocument : 
        lockType:_VSRDTFLAGS * 
        cookie:uint32 -> unit 
public function UnlockDocument(
    lockType : _VSRDTFLAGS, 
    cookie : uint
)

Parameters

  • cookie
    Type: System.UInt32
    The identifier of the document data in the Running Document Table.

Remarks

This method calls UnlockDocument.

.NET Framework Security

See Also

Reference

RunningDocumentTable Class

RunningDocumentTable Members

Microsoft.VisualStudio.Shell Namespace