Edit

Share via


WorkItemTrackingHttpClientBase.ReplaceTemplateAsync Method

Definition

[Preview API] Replace template contents

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate> ReplaceTemplateAsync (Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate templateContent, Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext teamContext, Guid templateId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ReplaceTemplateAsync : Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate * Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate>
override this.ReplaceTemplateAsync : Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate * Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate>

Parameters

templateContent
WorkItemTemplate

Template contents to replace with

teamContext
TeamContext

The team context for the operation

templateId
Guid

Template id

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to