IVsSolution2::CreateSolution Method (String^, String^, UInt32)
Visual Studio 2015
Creates a new solution.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSolution2::CreateSolution( [in, unique] LPCOLESTR lpszLocation, [in, unique] LPCOLESTR lpszName, [in] VSCREATESOLUTIONFLAGS grfCreateFlags );
Show: