共用方式為


RunningDocumentTable.FindOrRegisterAndLockDocument Method (_VSRDTFLAGS, String, IVsHierarchy, UInt32, Object, IVsHierarchy%, UInt32%, UInt32%)

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

Syntax

'宣告
Public Function FindOrRegisterAndLockDocument ( _
    lockType As _VSRDTFLAGS, _
    moniker As String, _
    hierPreferred As IVsHierarchy, _
    itemidPreferred As UInteger, _
    docDataPreferred As Object, _
    <OutAttribute> ByRef hierActual As IVsHierarchy, _
    <OutAttribute> ByRef itemidActual As UInteger, _
    <OutAttribute> ByRef docCookie As UInteger _
) As Object
public Object FindOrRegisterAndLockDocument(
    _VSRDTFLAGS lockType,
    string moniker,
    IVsHierarchy hierPreferred,
    uint itemidPreferred,
    Object docDataPreferred,
    out IVsHierarchy hierActual,
    out uint itemidActual,
    out uint docCookie
)

Parameters

Return Value

Type: System.Object

.NET Framework Security

See Also

Reference

RunningDocumentTable Class

FindOrRegisterAndLockDocument Overload

Microsoft.VisualStudio.Shell Namespace