VsShellUtilities.OpenDocumentWithSpecificEditor Method (IServiceProvider, String, Guid, Guid)

Opens the specified document with the specified editor.

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

Syntax

'宣言
Public Shared Function OpenDocumentWithSpecificEditor ( _
    provider As IServiceProvider, _
    fullPath As String, _
    editorType As Guid, _
    logicalView As Guid _
) As IVsWindowFrame
'使用
Dim provider As IServiceProvider
Dim fullPath As String
Dim editorType As Guid
Dim logicalView As Guid
Dim returnValue As IVsWindowFrame

returnValue = VsShellUtilities.OpenDocumentWithSpecificEditor(provider, _
    fullPath, editorType, logicalView)
public static IVsWindowFrame OpenDocumentWithSpecificEditor(
    IServiceProvider provider,
    string fullPath,
    Guid editorType,
    Guid logicalView
)
public:
static IVsWindowFrame^ OpenDocumentWithSpecificEditor(
    IServiceProvider^ provider, 
    String^ fullPath, 
    Guid editorType, 
    Guid logicalView
)
public static function OpenDocumentWithSpecificEditor(
    provider : IServiceProvider, 
    fullPath : String, 
    editorType : Guid, 
    logicalView : Guid
) : IVsWindowFrame

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.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame

The IVsWindowFrame interface of the window in which the document was opened.

Permissions

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

OpenDocumentWithSpecificEditor Overload

Microsoft.VisualStudio.Shell Namespace