Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
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
'Dichiarazione
Public Shared Sub OpenDocument ( _
provider As IServiceProvider, _
path As String _
)
'Utilizzo
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
- provider
Type: System.IServiceProvider
IServiceProvider.
- path
Type: System.String
The path of the document.
.NET Framework Security
- 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.