Edit

Share via


WorkItemTrackingHttpClientBase.GetWorkItemIconJsonAsync Method

Definition

[Preview API] Get a work item icon given the friendly name and icon color.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemIcon> GetWorkItemIconJsonAsync (string icon, string color = null, Nullable<int> v = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetWorkItemIconJsonAsync : string * string * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemIcon>
override this.GetWorkItemIconJsonAsync : string * string * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemIcon>

Parameters

icon
String

The name of the icon

color
String

The 6-digit hex color for the icon

v
Nullable<Int32>

The version of the icon (used only for cache invalidation)

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to