TaskAgentHttpClient.GetSecureFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Preview API] Get a secure file
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile> GetSecureFileAsync(Guid project, Guid secureFileId, Nullable<bool> includeDownloadTicket = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetSecureFileAsync : Guid * Guid * Nullable<bool> * 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
If includeDownloadTicket is true and the caller has permissions, a download ticket is included in the response.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.