Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a read or edit lock on the specified document.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Sub LockDocument ( _
lockType As _VSRDTFLAGS, _
cookie As UInteger _
)
public void LockDocument(
_VSRDTFLAGS lockType,
uint cookie
)
public:
void LockDocument(
_VSRDTFLAGS lockType,
unsigned int cookie
)
member LockDocument :
lockType:_VSRDTFLAGS *
cookie:uint32 -> unit
public function LockDocument(
lockType : _VSRDTFLAGS,
cookie : uint
)
Parameters
lockType
Type: Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGSLock values from the _VSRDTFLAGS enumeration.
cookie
Type: UInt32The identifier of the document to lock.
Remarks
This method calls LockDocument.
.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.