다음을 통해 공유


VsShellUtilities.OpenDocument Method (IServiceProvider, String)

Opens the specified document.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

‘선언
Public Shared Sub OpenDocument ( _
    provider As IServiceProvider, _
    path As String _
)
‘사용 방법
Dim provider As IServiceProvider
Dim path As String

VsShellUtilities.OpenDocument(provider, path)
public static void OpenDocument(
    IServiceProvider provider,
    string path
)
public:
static void OpenDocument(
    IServiceProvider^ provider, 
    String^ path
)
static member OpenDocument : 
        provider:IServiceProvider * 
        path:string -> unit 
public static function OpenDocument(
    provider : IServiceProvider, 
    path : String
)

Parameters

.NET Framework Security

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

OpenDocument Overload

Microsoft.VisualStudio.Shell Namespace