Language

TaskAgentHttpClientBase.UpdateSecureFileAsync Method

Definition

Overloads

Name Description
UpdateSecureFileAsync(Guid, Guid, SecureFile, Object, CancellationToken)

[Preview API] Update the name or properties of an existing secure file

UpdateSecureFileAsync(String, Guid, SecureFile, Object, CancellationToken)

[Preview API] Update the name or properties of an existing secure file

UpdateSecureFileAsync(Guid, Guid, SecureFile, Object, CancellationToken)

[Preview API] Update the name or properties of an existing secure file

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile> UpdateSecureFileAsync(Guid project, Guid secureFileId, Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile secureFile, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateSecureFileAsync : Guid * Guid * Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>
override this.UpdateSecureFileAsync : Guid * Guid * Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>

Parameters

project
Guid

Project ID

secureFileId
Guid

The unique secure file Id

secureFile
SecureFile

The secure file with updated name and/or properties

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdateSecureFileAsync(String, Guid, SecureFile, Object, CancellationToken)

[Preview API] Update the name or properties of an existing secure file

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile> UpdateSecureFileAsync(string project, Guid secureFileId, Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile secureFile, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateSecureFileAsync : string * Guid * Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>
override this.UpdateSecureFileAsync : string * Guid * Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>

Parameters

project
String

Project ID or project name

secureFileId
Guid

The unique secure file Id

secureFile
SecureFile

The secure file with updated name and/or properties

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to