IVsSolution2.OpenSolutionFile(UInt32, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Implémente
Remarques
Signature COM
À partir de vsshell. idl :
HRESULT IVsSolution2::OpenSolutionFile(
[in] VSSLNOPENOPTIONS grfOpenOpts,
[in] LPCOLESTR pszFilename
);