Udostępnij za pośrednictwem


Metoda VsShellUtilities.OpenDocumentWithSpecificEditor — (IServiceProvider, String, Guid, Guid)

Otwiera określony dokument za pomocą edytora określony.

Przestrzeń nazw:  Microsoft.VisualStudio.Shell
Zestaw:  Microsoft.VisualStudio.Shell.11.0 (w Microsoft.VisualStudio.Shell.11.0.dll)

Składnia

'Deklaracja
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
)

Parametry

  • editorType
    Typ: System.Guid
    Identyfikator GUID typu edytora do zastosowania.
  • logicalView
    Typ: System.Guid
    Identyfikator GUID logicznym widokiem do otwarcia dokumentu.

Wartość zwracana

Typ: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame
IVsWindowFrame Interfejs okna, w którym dokument jest otwierany.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VsShellUtilities Klasa

Przeciążenie OpenDocumentWithSpecificEditor

Przestrzeń nazw Microsoft.VisualStudio.Shell