Compartilhar via


Método _Solution.Create

Cria uma solução vazia no diretório especificado com o nome especificado.

Namespace:  EnvDTE
Assembly:  EnvDTE (em EnvDTE.dll)

Sintaxe

'Declaração
Sub Create ( _
    Destination As String, _
    Name As String _
)
void Create(
    string Destination,
    string Name
)
void Create(
    String^ Destination, 
    String^ Name
)
abstract Create : 
        Destination:string * 
        Name:string -> unit 
function Create(
    Destination : String, 
    Name : String
)

Parâmetros

  • Destination
    Tipo: System.String
    Obrigatório.O diretório no qual deseja criar a. sln e. suo arquivos (solução).
  • Name
    Tipo: System.String
    Obrigatório.O nome para exibir no Solution Explorer.Isso também é o nome de base dos arquivos. sln e. suo.

Exemplos

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

Segurança do .NET Framework

Consulte também

Referência

_Solution Interface

Namespace EnvDTE