Share via


IVsSolution2.CreateSolution(String, String, UInt32) Method

Definition

Creates a new solution.

public:
 int CreateSolution(System::String ^ lpszLocation, System::String ^ lpszName, System::UInt32 grfCreateFlags);
public:
 int CreateSolution(Platform::String ^ lpszLocation, Platform::String ^ lpszName, unsigned int grfCreateFlags);
int CreateSolution(std::wstring const & lpszLocation, std::wstring const & lpszName, unsigned int grfCreateFlags);
public int CreateSolution (string lpszLocation, string lpszName, uint grfCreateFlags);
abstract member CreateSolution : string * string * uint32 -> int
Public Function CreateSolution (lpszLocation As String, lpszName As String, grfCreateFlags As UInteger) As Integer

Parameters

lpszLocation
String

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

lpszName
String

[in] Filename, excluding the extension.

grfCreateFlags
UInt32

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

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution2::CreateSolution(  
   [in, unique] LPCOLESTR lpszLocation,   
   [in, unique] LPCOLESTR lpszName,   
   [in] VSCREATESOLUTIONFLAGS grfCreateFlags  
);  

Applies to