Releases a read or edit lock on the open document.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Sub UnlockDocument ( _
lockType As _VSRDTFLAGS, _
cookie As UInteger _
)
'使用
Dim instance As RunningDocumentTable
Dim lockType As _VSRDTFLAGS
Dim cookie As UInteger
instance.UnlockDocument(lockType, cookie)
public void UnlockDocument(
_VSRDTFLAGS lockType,
uint cookie
)
public:
void UnlockDocument(
_VSRDTFLAGS lockType,
unsigned int cookie
)
public function UnlockDocument(
lockType : _VSRDTFLAGS,
cookie : uint
)
Parameters
lockType
Type: Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGSLock values from the _VSRDTFLAGS enumeration.
cookie
Type: System.UInt32The identifier of the document data in the Running Document Table.
Remarks
This method calls UnlockDocument.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.