RunningDocumentTable.FindOrRegisterAndLockDocument Method (_VSRDTFLAGS, String, IVsHierarchy, UInt32, Object)
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 _
) As Object
public Object FindOrRegisterAndLockDocument(
_VSRDTFLAGS lockType,
string moniker,
IVsHierarchy hierPreferred,
uint itemidPreferred,
Object docDataPreferred
)
Parameters
- lockType
Type: Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGS
- moniker
Type: System.String
- hierPreferred
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
- itemidPreferred
Type: System.UInt32
- docDataPreferred
Type: System.Object
Return Value
Type: System.Object
.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.