This documentation is archived and is not being maintained.

IVsSolution.OpenSolutionFile Method

Opens a solution file of the type .sln, .dsw, or .vbg.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int OpenSolutionFile (
	[InAttribute] uint grfOpenOpts,
	[InAttribute] string pszFilename
)
int OpenSolutionFile (
	/** @attribute InAttribute() */ UInt32 grfOpenOpts, 
	/** @attribute InAttribute() */ String pszFilename
)
function OpenSolutionFile (
	grfOpenOpts : uint, 
	pszFilename : String
) : int

Parameters

grfOpenOpts

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

pszFilename

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

Return Value

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

COM Signature

From vsshell.idl:

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