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 microsoft.visualstudio.shell.interop.dll)

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.

Parameters

pbstrSolutionDirectory

[out] Pointer to the solution directory.

pbstrSolutionFile

[out] Pointer to the solution file name.

pbstrUserOptsFile

[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
);
Show: