Compartilhar via


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

Opens the specified document in the specified logical view.

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

Syntax

'Declaração
Public Shared Sub OpenDocument ( _
    provider As IServiceProvider, _
    fullPath As String, _
    logicalView As Guid, _
    <OutAttribute> ByRef hierarchy As IVsUIHierarchy, _
    <OutAttribute> ByRef itemID As UInteger, _
    <OutAttribute> ByRef windowFrame As IVsWindowFrame, _
    <OutAttribute> ByRef view As IVsTextView _
)
public static void OpenDocument(
    IServiceProvider provider,
    string fullPath,
    Guid logicalView,
    out IVsUIHierarchy hierarchy,
    out uint itemID,
    out IVsWindowFrame windowFrame,
    out IVsTextView view
)

Parameters

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

.NET Framework Security

See Also

Reference

VsShellUtilities Class

OpenDocument Overload

Microsoft.VisualStudio.Shell Namespace