Freigeben über


RunningDocumentTable.LockDocument(_VSRDTFLAGS, UInt32) Method

Definition

Gets a read or edit lock on the specified document.

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

Parameters

lockType
_VSRDTFLAGS

Lock values from the _VSRDTFLAGS enumeration.

cookie
UInt32

The identifier of the document to lock.

Remarks

This method calls LockDocument.

Applies to