Language

TaskAgentHttpClientBase.UpdateSecureFilesAsync Method

Definition

Overloads

Name Description
UpdateSecureFilesAsync(Guid, IEnumerable<SecureFile>, Object, CancellationToken)

[Preview API] Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge.

UpdateSecureFilesAsync(String, IEnumerable<SecureFile>, Object, CancellationToken)

[Preview API] Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge.

UpdateSecureFilesAsync(Guid, IEnumerable<SecureFile>, Object, CancellationToken)

[Preview API] Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge.

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

Parameters

project
Guid

Project ID

secureFiles
IEnumerable<SecureFile>

A list of secure file objects. Only three field must be populated Id, Name, and Properties. The rest of fields in the object are ignored.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdateSecureFilesAsync(String, IEnumerable<SecureFile>, Object, CancellationToken)

[Preview API] Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge.

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

secureFiles
IEnumerable<SecureFile>

A list of secure file objects. Only three field must be populated Id, Name, and Properties. The rest of fields in the object are ignored.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to