RunningDocumentTable.UnlockDocument(_VSRDTFLAGS, UInt32) Method

Definition

Releases a read or edit lock on the open document.

public:
 Microsoft::VisualStudio::Shell::UnlockResult UnlockDocument(Microsoft::VisualStudio::Shell::Interop::_VSRDTFLAGS lockType, System::UInt32 cookie);
public:
 Microsoft::VisualStudio::Shell::UnlockResult UnlockDocument(Microsoft::VisualStudio::Shell::Interop::_VSRDTFLAGS lockType, unsigned int cookie);
Microsoft::VisualStudio::Shell::UnlockResult UnlockDocument(Microsoft::VisualStudio::Shell::Interop::_VSRDTFLAGS lockType, unsigned int cookie);
public Microsoft.VisualStudio.Shell.UnlockResult UnlockDocument (Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGS lockType, uint cookie);
member this.UnlockDocument : Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGS * uint32 -> Microsoft.VisualStudio.Shell.UnlockResult
Public Function UnlockDocument (lockType As _VSRDTFLAGS, cookie As UInteger) As UnlockResult

Parameters

lockType
_VSRDTFLAGS

Lock values from the _VSRDTFLAGS enumeration.

cookie
UInt32

The identifier of the document data in the Running Document Table.

Returns

Returns the value of Unlocked.

Remarks

This method calls UnlockDocument.

Applies to