ImportCollection.RemoveImport(Import) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.