IVsSolution2.CreateSolution Method
Creates a new solution.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function CreateSolution ( _
lpszLocation As String, _
lpszName As String, _
grfCreateFlags As UInteger _
) As Integer
int CreateSolution(
string lpszLocation,
string lpszName,
uint grfCreateFlags
)
int CreateSolution(
[InAttribute] String^ lpszLocation,
[InAttribute] String^ lpszName,
[InAttribute] unsigned int grfCreateFlags
)
abstract CreateSolution :
lpszLocation:string *
lpszName:string *
grfCreateFlags:uint32 -> int
function CreateSolution(
lpszLocation : String,
lpszName : String,
grfCreateFlags : uint
) : int
Parameters
lpszLocation
Type: String[in, unique] Path to the solution, excluding the filename.
lpszName
Type: String[in] Filename, excluding the extension.
grfCreateFlags
Type: UInt32[in, unique] Controls how a new solution is created. For a list of grfCreateFlags values, see __VSCREATESOLUTIONFLAGS.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSolution2::CreateSolution(
[in, unique] LPCOLESTR lpszLocation,
[in, unique] LPCOLESTR lpszName,
[in] VSCREATESOLUTIONFLAGS grfCreateFlags
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.