Compartir a través de


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

Opens the specified document by using the specified editor.

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

Syntax

'Declaration
Public Shared Function OpenDocumentWithSpecificEditor ( _
    provider As IServiceProvider, _
    fullPath As String, _
    editorType As Guid, _
    logicalView As Guid _
) As IVsWindowFrame
public static IVsWindowFrame OpenDocumentWithSpecificEditor(
    IServiceProvider provider,
    string fullPath,
    Guid editorType,
    Guid logicalView
)
public:
static IVsWindowFrame^ OpenDocumentWithSpecificEditor(
    IServiceProvider^ provider, 
    String^ fullPath, 
    Guid editorType, 
    Guid logicalView
)
static member OpenDocumentWithSpecificEditor : 
        provider:IServiceProvider * 
        fullPath:string * 
        editorType:Guid * 
        logicalView:Guid -> IVsWindowFrame
public static function OpenDocumentWithSpecificEditor(
    provider : IServiceProvider, 
    fullPath : String, 
    editorType : Guid, 
    logicalView : Guid
) : IVsWindowFrame

Parameters

  • fullPath
    Type: String

    The absolute path of the document.

  • editorType
    Type: Guid

    The GUID of the type of editor to use.

  • logicalView
    Type: 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 is opened.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

OpenDocumentWithSpecificEditor Overload

Microsoft.VisualStudio.Shell Namespace