Opens the specified document with the specified editor.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Shared Sub OpenDocumentWithSpecificEditor ( _
provider As IServiceProvider, _
fullPath As String, _
editorType As Guid, _
logicalView As Guid, _
<OutAttribute> ByRef hierarchy As IVsUIHierarchy, _
<OutAttribute> ByRef itemID As UInteger, _
<OutAttribute> ByRef windowFrame As IVsWindowFrame _
)
'使用
Dim provider As IServiceProvider
Dim fullPath As String
Dim editorType As Guid
Dim logicalView As Guid
Dim hierarchy As IVsUIHierarchy
Dim itemID As UInteger
Dim windowFrame As IVsWindowFrame
VsShellUtilities.OpenDocumentWithSpecificEditor(provider, _
fullPath, editorType, logicalView, _
hierarchy, itemID, windowFrame)
public static void OpenDocumentWithSpecificEditor(
IServiceProvider provider,
string fullPath,
Guid editorType,
Guid logicalView,
out IVsUIHierarchy hierarchy,
out uint itemID,
out IVsWindowFrame windowFrame
)
public:
static void OpenDocumentWithSpecificEditor(
IServiceProvider^ provider,
String^ fullPath,
Guid editorType,
Guid logicalView,
[OutAttribute] IVsUIHierarchy^% hierarchy,
[OutAttribute] unsigned int% itemID,
[OutAttribute] IVsWindowFrame^% windowFrame
)
public static function OpenDocumentWithSpecificEditor(
provider : IServiceProvider,
fullPath : String,
editorType : Guid,
logicalView : Guid,
hierarchy : IVsUIHierarchy,
itemID : uint,
windowFrame : IVsWindowFrame
)
Parameters
provider
Type: System.IServiceProvider
fullPath
Type: System.StringThe absolute path of the document.
editorType
Type: System.GuidThe GUID of the type of editor to use.
logicalView
Type: System.GuidThe GUID of the logical view in which to open the document.
hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy%[out] The IVsUIHierarchy interface of the project containing the document.
itemID
Type: System.UInt32%[out] The item ID of the document.
windowFrame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame%[out] the IVsWindowFrame interface of the window in which the document was opened.
Permissions
- 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.