ProjectCollection.TryUnloadProject(ProjectRootElement) 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.
Unloads a project XML root element from the cache entirely, if it is not in use by project loaded into this collection. Returns true if it was unloaded successfully, or was not already loaded. Returns false if it was not unloaded because it was still in use by a loaded Project.
public:
bool TryUnloadProject(Microsoft::Build::Construction::ProjectRootElement ^ projectRootElement);
public bool TryUnloadProject (Microsoft.Build.Construction.ProjectRootElement projectRootElement);
member this.TryUnloadProject : Microsoft.Build.Construction.ProjectRootElement -> bool
Public Function TryUnloadProject (projectRootElement As ProjectRootElement) As Boolean
Parameters
- projectRootElement
- ProjectRootElement
The project XML root element to unload.
Returns
true
if the project was unloaded; otherwise, false
.