WorkItemTrackingHttpClientBase.GetTemplateAsync 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] Gets the template with specified id
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate> GetTemplateAsync(Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext teamContext, Guid templateId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTemplateAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate>
override this.GetTemplateAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplate>
Parameters
- teamContext
- TeamContext
The team context for the operation
- templateId
- Guid
Template Id
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.