Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Releases a read or edit lock on the open document.
Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Function UnlockDocument ( _
    lockType As _VSRDTFLAGS, _
    cookie As UInteger _
) As UnlockResult
public UnlockResult UnlockDocument(
    _VSRDTFLAGS lockType,
    uint cookie
)
public:
UnlockResult UnlockDocument(
    _VSRDTFLAGS lockType, 
    unsigned int cookie
)
member UnlockDocument : 
        lockType:_VSRDTFLAGS * 
        cookie:uint32 -> UnlockResult
public function UnlockDocument(
    lockType : _VSRDTFLAGS, 
    cookie : uint
) : UnlockResult
Parameters
- lockType 
 Type: Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGS- Lock values from the _VSRDTFLAGS enumeration. 
- cookie 
 Type: UInt32- The identifier of the document data in the Running Document Table. 
Return Value
Type: Microsoft.VisualStudio.Shell.UnlockResult
Returns the value of Unlocked.
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.