Export (0) Print
Expand All

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 (
	[InAttribute] string lpszLocation,
	[InAttribute] string lpszName,
	[InAttribute] uint grfCreateFlags
)
int CreateSolution (
	/** @attribute InAttribute() */ String lpszLocation, 
	/** @attribute InAttribute() */ String lpszName, 
	/** @attribute InAttribute() */ UInt32 grfCreateFlags
)
function CreateSolution (
	lpszLocation : String, 
	lpszName : String, 
	grfCreateFlags : uint
) : int

Parameters

lpszLocation

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

lpszName

[in] Filename, excluding the extension.

grfCreateFlags

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

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::CreateSolution(
   [in, unique] LPCOLESTR lpszLocation,
   [in, unique] LPCOLESTR lpszName,
   [in] VSCREATESOLUTIONFLAGS grfCreateFlags
);

Community Additions

ADD
Show:
© 2014 Microsoft