Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 hierActual As IVsHierarchy, _
    <OutAttribute> ByRef itemidActual As UInteger, _
    <OutAttribute> ByRef docCookie As UInteger _
) As Object
public Object FindAndLockDocumentEx(
    _VSRDTFLAGS lockType,
    string moniker,
    IVsHierarchy hierPreferred,
    uint itemidPreferred,
    out IVsHierarchy hierActual,
    out uint itemidActual,
    out uint docCookie
)
public:
Object^ FindAndLockDocumentEx(
    _VSRDTFLAGS lockType, 
    String^ moniker, 
    IVsHierarchy^ hierPreferred, 
    unsigned int itemidPreferred, 
    [OutAttribute] IVsHierarchy^% hierActual, 
    [OutAttribute] unsigned int% itemidActual, 
    [OutAttribute] unsigned int% docCookie
)
member FindAndLockDocumentEx : 
        lockType:_VSRDTFLAGS * 
        moniker:string * 
        hierPreferred:IVsHierarchy * 
        itemidPreferred:uint32 * 
        hierActual:IVsHierarchy byref * 
        itemidActual:uint32 byref * 
        docCookie:uint32 byref -> Object
public function FindAndLockDocumentEx(
    lockType : _VSRDTFLAGS, 
    moniker : String, 
    hierPreferred : IVsHierarchy, 
    itemidPreferred : uint, 
    hierActual : IVsHierarchy, 
    itemidActual : uint, 
    docCookie : uint
) : Object
Parameters
- lockType 
 Type: Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGS- The lock type. 
- moniker 
 Type: String- The document moniker. 
- hierPreferred 
 Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy- The project hierarchy. 
- itemidPreferred 
 Type: UInt32- The item ID. 
- hierActual 
 Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy%- The actual project hierarchy. 
- itemidActual 
 Type: UInt32%- The actual item ID. 
- docCookie 
 Type: UInt32%- The document cookie. 
Return Value
Type: Object
The lock.
.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.