Partilhar via


IVsSolution.OpenSolutionFile(UInt32, String) Method

Definition

Opens a solution file of the type .sln, .dsw, or .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

Parameters

grfOpenOpts
UInt32

[in] Options for opening a solution file. For a list of grfOpenOpts values, see __VSSLNOPENOPTIONS.

pszFilename
String

[in] Pointer to the name of the solution file to open.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

Applies to