IVsSolution.OpenSolutionFile(UInt32, String) Méthode

Définition

Ouvre un fichier solution du type .sln, .dsw ou .vbg.

public:
 int OpenSolutionFile(System::UInt32 grfOpenOpts, System::String ^ pszFilename);
public:
 int OpenSolutionFile(unsigned int grfOpenOpts, Platform::String ^ pszFilename);
int OpenSolutionFile(unsigned int grfOpenOpts, std::wstring const & pszFilename);
public int OpenSolutionFile (uint grfOpenOpts, string pszFilename);
abstract member OpenSolutionFile : uint32 * string -> int
Public Function OpenSolutionFile (grfOpenOpts As UInteger, pszFilename As String) As Integer

Paramètres

grfOpenOpts
UInt32

[in] Options d'ouverture d'un fichier solution. Pour obtenir la liste des valeurs grfOpenOpts, consultez __VSSLNOPENOPTIONS.

pszFilename
String

[in] Pointeur vers le nom du fichier solution à ouvrir.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de vsshell. idl :

HRESULT IVsSolution::OpenSolutionFile(  
   [in] VSSLNOPENOPTIONS grfOpenOpts,  
   [in] LPCOLESTR pszFilename  
);  

S’applique à