Bearbeiten

Freigeben über


TaskAgentHttpClientBase.GetTaskGroupAsync Method

Definition

Overloads

GetTaskGroupAsync(String, Guid, String, Nullable<TaskGroupExpands>, Object, CancellationToken)

[Preview API] Get task group.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroup> GetTaskGroupAsync(string project, Guid taskGroupId, string versionSpec, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroupExpands> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTaskGroupAsync : string * Guid * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroupExpands> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroup>
override this.GetTaskGroupAsync : string * Guid * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroupExpands> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroup>

Parameters

project
String

Project ID or project name

taskGroupId
Guid

Id of the task group.

versionSpec
String

version specification of the task group. examples: 1, 1.0.

expand
Nullable<TaskGroupExpands>

The properties that should be expanded. example $expand=Tasks will expand nested task groups.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTaskGroupAsync(Guid, Guid, String, Nullable<TaskGroupExpands>, Object, CancellationToken)

[Preview API] Get task group.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroup> GetTaskGroupAsync(Guid project, Guid taskGroupId, string versionSpec, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroupExpands> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTaskGroupAsync : Guid * Guid * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroupExpands> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroup>
override this.GetTaskGroupAsync : Guid * Guid * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroupExpands> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskGroup>

Parameters

project
Guid

Project ID

taskGroupId
Guid

Id of the task group.

versionSpec
String

version specification of the task group. examples: 1, 1.0.

expand
Nullable<TaskGroupExpands>

The properties that should be expanded. example $expand=Tasks will expand nested task groups.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to