This documentation is archived and is not being maintained.

IVsSolution.GetSolutionInfo Method

Returns the required solution file information.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int GetSolutionInfo (
	out string pbstrSolutionDirectory,
	out string pbstrSolutionFile,
	out string pbstrUserOptsFile
int GetSolutionInfo (
	/** @attribute OutAttribute() */ /** @ref */ String pbstrSolutionDirectory, 
	/** @attribute OutAttribute() */ /** @ref */ String pbstrSolutionFile, 
	/** @attribute OutAttribute() */ /** @ref */ String pbstrUserOptsFile
JScript does not support passing value-type arguments by reference.



[out] Pointer to the solution directory.


[out] Pointer to the solution file name.


[out] Pointer to the solutions options file name.

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::GetSolutionInfo(
   [out] BSTR *pbstrSolutionDirectory,
   [out] BSTR *pbstrSolutionFile,
   [out] BSTR *pbstrUserOptsFile