Share via


VsShellUtilities.OpenDocument Method (IServiceProvider, String)

Opens the specified document.

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

Syntax

'Declaration
Public Shared Sub OpenDocument ( _
    provider As IServiceProvider, _
    path As String _
)
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

OpenDocument Overload

Microsoft.VisualStudio.Shell Namespace