Compartilhar via


RunningDocumentTable.FindAndLockDocumentEx Method (_VSRDTFLAGS, String, IVsHierarchy, UInt32, UInt32%)

Finds and locks the document.

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

Syntax

'Declaration
Public Function FindAndLockDocumentEx ( _
    lockType As _VSRDTFLAGS, _
    moniker As String, _
    hierPreferred As IVsHierarchy, _
    itemidPreferred As UInteger, _
    <OutAttribute> ByRef docCookie As UInteger _
) As Object
public Object FindAndLockDocumentEx(
    _VSRDTFLAGS lockType,
    string moniker,
    IVsHierarchy hierPreferred,
    uint itemidPreferred,
    out uint docCookie
)
public:
Object^ FindAndLockDocumentEx(
    _VSRDTFLAGS lockType, 
    String^ moniker, 
    IVsHierarchy^ hierPreferred, 
    unsigned int itemidPreferred, 
    [OutAttribute] unsigned int% docCookie
)
member FindAndLockDocumentEx : 
        lockType:_VSRDTFLAGS * 
        moniker:string * 
        hierPreferred:IVsHierarchy * 
        itemidPreferred:uint32 * 
        docCookie:uint32 byref -> Object
public function FindAndLockDocumentEx(
    lockType : _VSRDTFLAGS, 
    moniker : String, 
    hierPreferred : IVsHierarchy, 
    itemidPreferred : uint, 
    docCookie : uint
) : Object

Parameters

  • moniker
    Type: String

    The document moniker.

  • itemidPreferred
    Type: UInt32

    The item ID.

  • docCookie
    Type: UInt32%

    The document cookie.

Return Value

Type: Object
The lock.

.NET Framework Security

See Also

Reference

RunningDocumentTable Class

FindAndLockDocumentEx Overload

Microsoft.VisualStudio.Shell Namespace