RunningDocumentTable.UnlockDocument Method
Releases a read or edit lock on the open document.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Sub UnlockDocument ( _
lockType As _VSRDTFLAGS, _
cookie As UInteger _
)
[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
- lockType
Type: Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGS
Lock values from the _VSRDTFLAGS enumeration.
- cookie
Type: System.UInt32
The identifier of the document data in the Running Document Table.
Remarks
This method calls UnlockDocument.
.NET Framework Security
- 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.