RunningDocumentTable::LockDocument Method (_VSRDTFLAGS, UInt32)

 

Gets a read or edit lock on the specified document.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
void LockDocument(
	_VSRDTFLAGS lockType,
	unsigned int cookie
)

Parameters

lockType
Type: Microsoft.VisualStudio.Shell.Interop::_VSRDTFLAGS

Lock values from the _VSRDTFLAGS enumeration.

cookie
Type: System::UInt32

The identifier of the document to lock.

This method calls LockDocument.

Return to top
Show: