_Solution.Create Method
Creates an empty solution in the specified directory with the specified name.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Sub Create ( _
Destination As String, _
Name As String _
)
'Usage
Dim instance As _Solution
Dim Destination As String
Dim Name As String
instance.Create(Destination, Name)
void Create(
string Destination,
string Name
)
void Create(
String^ Destination,
String^ Name
)
function Create(
Destination : String,
Name : String
)
Parameters
Destination
Type: System.StringRequired. The directory in which to create the .sln and .suo (solution) files.
Name
Type: System.StringRequired. The name to display in Solution Explorer. This is also the base name of the .sln and .suo files.
Examples
Sub CreateExample(ByVal dte As DTE)
' Open a solution before running this example.
Dim soln As Solution
' Create a reference to the solution.
soln = dte.Solution
' Create a new solution.
soln.Create("c:\temp", "ANewSoln.sln")
End Sub
.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.