RunningDocumentTable.LockDocument Method

Gets a read or edit lock on the specified document.

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

Syntax

'宣言
Public Sub LockDocument ( _
    lockType As _VSRDTFLAGS, _
    cookie As UInteger _
)
'使用
Dim instance As RunningDocumentTable
Dim lockType As _VSRDTFLAGS
Dim cookie As UInteger

instance.LockDocument(lockType, cookie)
public void LockDocument(
    _VSRDTFLAGS lockType,
    uint cookie
)
public:
void LockDocument(
    _VSRDTFLAGS lockType, 
    unsigned int cookie
)
public function LockDocument(
    lockType : _VSRDTFLAGS, 
    cookie : uint
)

Parameters

  • cookie
    Type: System.UInt32

    The identifier of the document to lock.

Remarks

This method calls LockDocument.

Permissions

See Also

Reference

RunningDocumentTable Class

RunningDocumentTable Members

Microsoft.VisualStudio.Shell Namespace