Partager via


ISolutionService.UnloadProjectsAsync Method

Definition

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.

cancellationToken
CancellationToken

A cancellation token.

Returns

If all projects were already unloaded, it returns 'false'. Else, it returns 'true'.

Applies to