This topic has not yet been rated - Rate this topic

IVsSolution.CreateSolution Method

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,
	uint 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.

COM Signature

From vsshell.idl:

HRESULT IVsSolution::CreateSolution(
   [in, unique] LPCOLESTR lpszLocation,
   [in, unique] LPCOLESTR lpszName,
   [in] VSCREATESOLUTIONFLAGS grfCreateFlags
);
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.