Edit

TaskAgentHttpClient.GetSecureFilesByIdsAsync Method

Definition

Overloads

GetSecureFilesByIdsAsync(Guid, IEnumerable<Guid>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Get secure files

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>> GetSecureFilesByIdsAsync(Guid project, System.Collections.Generic.IEnumerable<Guid> secureFileIds, Nullable<bool> includeDownloadTickets = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetSecureFilesByIdsAsync : Guid * seq<Guid> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>>

Parameters

project
Guid

Project ID

secureFileIds
IEnumerable<Guid>

A list of secure file Ids

includeDownloadTickets
Nullable<Boolean>

If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetSecureFilesByIdsAsync(String, IEnumerable<Guid>, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Get secure files

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>> GetSecureFilesByIdsAsync(string project, System.Collections.Generic.IEnumerable<Guid> secureFileIds, Nullable<bool> includeDownloadTickets = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetSecureFilesByIdsAsync : string * seq<Guid> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>>

Parameters

project
String

Project ID or project name

secureFileIds
IEnumerable<Guid>

A list of secure file Ids

includeDownloadTickets
Nullable<Boolean>

If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to