IVsSolution2::OpenSolutionFile Method (UInt32, String^)
Visual Studio 2015
Opens a solution file of the type .sln, .dsw, or .vbg.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- grfOpenOpts
-
Type:
System::UInt32
[in] Options for opening a solution file. For a list of grfOpenOpts values, see __VSSLNOPENOPTIONS.
- pszFilename
-
Type:
System::String^
[in] Pointer to the name of the solution file to open.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSolution2::OpenSolutionFile( [in] VSSLNOPENOPTIONS grfOpenOpts, [in] LPCOLESTR pszFilename );
Show: