Opens the specified document.
Namespace: Microsoft.VisualStudio.Shell
Assembly: 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
)
public static function OpenDocument(
provider : IServiceProvider,
path : String
)
Parameters
provider
Type: System.IServiceProvider
path
Type: System.StringThe path of the document.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.