WorkItemTrackingHttpClientBase.GetFieldsAsync 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
GetFieldsAsync(String, Nullable<GetFieldsExpand>, Object, CancellationToken) |
[Preview API] Returns information for all fields. |
GetFieldsAsync(Guid, Nullable<GetFieldsExpand>, Object, CancellationToken) |
[Preview API] Returns information for all fields. |
GetFieldsAsync(Nullable<GetFieldsExpand>, Object, CancellationToken) |
[Preview API] Returns information for all fields. |
GetFieldsAsync(String, Nullable<GetFieldsExpand>, Object, CancellationToken)
[Preview API] Returns information for all fields.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>> GetFieldsAsync (string project, Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFieldsAsync : string * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>>
override this.GetFieldsAsync : string * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>>
Parameters
- project
- String
Project ID or project name
- expand
- Nullable<GetFieldsExpand>
Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetFieldsAsync(Guid, Nullable<GetFieldsExpand>, Object, CancellationToken)
[Preview API] Returns information for all fields.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>> GetFieldsAsync (Guid project, Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFieldsAsync : Guid * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>>
override this.GetFieldsAsync : Guid * Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>>
Parameters
- project
- Guid
Project ID
- expand
- Nullable<GetFieldsExpand>
Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetFieldsAsync(Nullable<GetFieldsExpand>, Object, CancellationToken)
[Preview API] Returns information for all fields.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>> GetFieldsAsync (Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFieldsAsync : Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>>
override this.GetFieldsAsync : Nullable<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.GetFieldsExpand> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemField>>
Parameters
- expand
- Nullable<GetFieldsExpand>
Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included.
- 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