WorkItemTrackingHttpClientBase.GetFieldAsync 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.
Overloads
GetFieldAsync(String, Object, CancellationToken) |
[Preview API] Gets information on a specific field. |
GetFieldAsync(Guid, String, Object, CancellationToken) |
[Preview API] Gets information on a specific field. |
GetFieldAsync(String, String, Object, CancellationToken) |
[Preview API] Gets information on a specific field. |
GetFieldAsync(String, Object, CancellationToken)
[Preview API] Gets information on a specific field.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField> GetFieldAsync (string fieldNameOrRefName, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFieldAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>
override this.GetFieldAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>
Parameters
- fieldNameOrRefName
- String
Field simple name or reference name
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetFieldAsync(Guid, String, Object, CancellationToken)
[Preview API] Gets information on a specific field.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField> GetFieldAsync (Guid project, string fieldNameOrRefName, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFieldAsync : Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>
override this.GetFieldAsync : Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>
Parameters
- project
- Guid
Project ID
- fieldNameOrRefName
- String
Field simple name or reference name
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetFieldAsync(String, String, Object, CancellationToken)
[Preview API] Gets information on a specific field.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField> GetFieldAsync (string project, string fieldNameOrRefName, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFieldAsync : string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>
override this.GetFieldAsync : string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>
Parameters
- project
- String
Project ID or project name
- fieldNameOrRefName
- String
Field simple name or reference name
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for