WorkItemTrackingHttpClientBase.GetTemplatesAsync 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 template
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplateReference>> GetTemplatesAsync(Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext teamContext, string workitemtypename = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTemplatesAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplateReference>>
override this.GetTemplatesAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemTemplateReference>>
Parameters
- teamContext
- TeamContext
The team context for the operation
- workitemtypename
- String
Optional, When specified returns templates for given Work item type.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.