ISolutionService.UnloadProjectsAsync 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 projects and sets the reason for unloading them.
public:
System::Threading::Tasks::ValueTask<bool> UnloadProjectsAsync(cli::array <Guid> ^ projectIds, Microsoft::VisualStudio::RpcContracts::Solution::ProjectUnloadReason unloadReason, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask<bool> UnloadProjectsAsync (Guid[] projectIds, Microsoft.VisualStudio.RpcContracts.Solution.ProjectUnloadReason unloadReason, System.Threading.CancellationToken cancellationToken);
abstract member UnloadProjectsAsync : Guid[] * Microsoft.VisualStudio.RpcContracts.Solution.ProjectUnloadReason * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<bool>
Public Function UnloadProjectsAsync (projectIds As Guid(), unloadReason As ProjectUnloadReason, cancellationToken As CancellationToken) As ValueTask(Of Boolean)
Parameters
- projectIds
- Guid[]
The GUIDs of the projects.
- unloadReason
- ProjectUnloadReason
The ProjectUnloadReason.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
If all projects were already unloaded, it returns 'false'. Else, it returns 'true'.