_Solution.Remove(Project) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Remove o projeto especificado da solução.
public:
void Remove(EnvDTE::Project ^ proj);
public:
void Remove(EnvDTE::Project ^ proj);
void Remove(EnvDTE::Project const & proj);
[System.Runtime.InteropServices.DispId(25)]
public void Remove (EnvDTE.Project proj);
[<System.Runtime.InteropServices.DispId(25)>]
abstract member Remove : EnvDTE.Project -> unit
Public Sub Remove (proj As Project)
Parâmetros
- proj
- Project
Obrigatórios. O projeto a ser removido da solução.
- Atributos
Exemplos
Sub RemoveExample()
' This function loads a solution, deletes the first project,
' and then closes the solution.
Dim soln As Solution
Dim proj As Project
Dim msg As String
'Create a reference to the solution.
soln = DTE.Solution
' Open the solution just created.
soln.Open("c:\temp2\newsolution.sln")
' Delete the newly-created VB Console application project in
' this solution.
MsgBox("Ready to delete the project.")
proj = soln.Projects.Item(1)
soln.Remove(proj)
MsgBox("Project was deleted from the solution.")
' Close the solution from the IDE.
soln.Close()
End Sub