Partilhar via


ProjectCollection.TryUnloadProject(ProjectRootElement) Method

Definition

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.

Applies to