IVsSolution::CreateSolution Method (String^, String^, UInt32)

 

Creates a new solution.

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

int CreateSolution(
	String^ lpszLocation,
	String^ lpszName,
	unsigned int grfCreateFlags
)

Parameters

lpszLocation
Type: System::String^

[in, unique] Path to the solution, excluding the filename.

lpszName
Type: System::String^

[in] Filename, excluding the extension.

grfCreateFlags
Type: System::UInt32

[in, unique] Controls how a new solution is created. For a list of grfCreateFlags values, see __VSCREATESOLUTIONFLAGS.

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsSolution::CreateSolution(
   [in, unique] LPCOLESTR lpszLocation,
   [in, unique] LPCOLESTR lpszName,
   [in] VSCREATESOLUTIONFLAGS grfCreateFlags
);
Return to top
Show: