Edit

TaskAgentHttpClientBase.GetSecureFilesByNamesAsync Method

Definition

Overloads

GetSecureFilesByNamesAsync(String, IEnumerable<String>, Nullable<Boolean>, Nullable<SecureFileActionFilter>, Object, CancellationToken)

[Preview API] Get secure files

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>> GetSecureFilesByNamesAsync(string project, System.Collections.Generic.IEnumerable<string> secureFileNames, Nullable<bool> includeDownloadTickets = null, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFileActionFilter> actionFilter = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetSecureFilesByNamesAsync : string * seq<string> * Nullable<bool> * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFileActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>>
override this.GetSecureFilesByNamesAsync : string * seq<string> * Nullable<bool> * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFileActionFilter> * 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

secureFileNames
IEnumerable<String>

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

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

[Preview API] Get secure files

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

Parameters

project
Guid

Project ID

secureFileNames
IEnumerable<String>

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