WorkHttpClientBase.ReplaceCapacitiesAsync 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.
[Preview API] Replace a team's capacity
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.TeamMemberCapacity>> ReplaceCapacitiesAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.Work.WebApi.TeamMemberCapacity> capacities, Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext teamContext, Guid iterationId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ReplaceCapacitiesAsync : seq<Microsoft.TeamFoundation.Work.WebApi.TeamMemberCapacity> * Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.TeamMemberCapacity>>
override this.ReplaceCapacitiesAsync : seq<Microsoft.TeamFoundation.Work.WebApi.TeamMemberCapacity> * Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Work.WebApi.TeamMemberCapacity>>
Parameters
- capacities
- IEnumerable<TeamMemberCapacity>
Team capacity to replace
- teamContext
- TeamContext
The team context for the operation
- iterationId
- Guid
ID of the iteration
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.