次の方法で共有


RunningDocumentTable.LockDocument Method

Gets a read or edit lock on the specified document.

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

Syntax

'宣言
Public Sub LockDocument ( _
    lockType As _VSRDTFLAGS, _
    cookie As UInteger _
)
public void LockDocument(
    _VSRDTFLAGS lockType,
    uint cookie
)

Parameters

  • cookie
    Type: System.UInt32
    The identifier of the document to lock.

Remarks

This method calls LockDocument.

.NET Framework Security

See Also

Reference

RunningDocumentTable Class

Microsoft.VisualStudio.Shell Namespace