ImportCollection.RemoveImport(Import) ImportCollection.RemoveImport(Import) ImportCollection.RemoveImport(Import) ImportCollection.RemoveImport(Import) Method

Definition

Allows hosts to programmatically remove <Import> tags that are part of a project file being manipulated by the host.

public:
 void RemoveImport(Microsoft::Build::BuildEngine::Import ^ importToRemove);
public void RemoveImport (Microsoft.Build.BuildEngine.Import importToRemove);
member this.RemoveImport : Microsoft.Build.BuildEngine.Import -> unit
Public Sub RemoveImport (importToRemove As Import)

Parameters

importToRemove
Import Import Import Import

A string representing the name of the <Import> tag to remove from the project file.

Remarks

Removing an import marks the project as dirty, which means that the project will be re-evaluated at some point during other operations on the project instance.

Applies to