Compartilhar via


_Solution.Create(String, String) Method

Definition

Creates an empty solution in the specified directory with the specified name.

public:
 void Create(System::String ^ Destination, System::String ^ Name);
public:
 void Create(Platform::String ^ Destination, Platform::String ^ Name);
void Create(std::wstring const & Destination, std::wstring const & Name);
[System.Runtime.InteropServices.DispId(40)]
public void Create (string Destination, string Name);
[<System.Runtime.InteropServices.DispId(40)>]
abstract member Create : string * string -> unit
Public Sub Create (Destination As String, Name As String)

Parameters

Destination
String

Required. The directory in which to create the .sln and .suo (solution) files.

Name
String

Required. The name to display in Solution Explorer. This is also the base name of the .sln and .suo files.

Attributes

Examples

Sub CreateExample()  
   ' 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  

Applies to