Compartir a través de


VsShellUtilities.OpenDocumentWithSpecificEditor Method (IServiceProvider, String, Guid, Guid, IVsUIHierarchy%, UInt32%, IVsWindowFrame%)

Opens the specified document by using the specified editor.

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

Syntax

'Declaración
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 _
)
public static void OpenDocumentWithSpecificEditor(
    IServiceProvider provider,
    string fullPath,
    Guid editorType,
    Guid logicalView,
    out IVsUIHierarchy hierarchy,
    out uint itemID,
    out IVsWindowFrame windowFrame
)

Parameters

  • fullPath
    Type: System.String
    The absolute path of the document.
  • editorType
    Type: System.Guid
    The GUID of the type of editor to use.
  • logicalView
    Type: System.Guid
    The GUID of the logical view in which to open the document.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

OpenDocumentWithSpecificEditor Overload

Microsoft.VisualStudio.Shell Namespace