Edit

Share via


BuildHttpClientBase.GetFileAsync Method

Definition

Overloads

GetFileAsync(String, Int32, String, String, String, Object, CancellationToken)

[Preview API] Gets a file from the build.

GetFileAsync(Guid, Int32, String, String, String, Object, CancellationToken)

[Preview API] Gets a file from the build.

GetFileAsync(String, Int32, String, String, String, Object, CancellationToken)

[Preview API] Gets a file from the build.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetFileAsync (string project, int buildId, string artifactName, string fileId, string fileName, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFileAsync : string * int * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetFileAsync : string * int * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>

Parameters

project
String

Project ID or project name

buildId
Int32

The ID of the build.

artifactName
String

The name of the artifact.

fileId
String

The primary key for the file.

fileName
String

The name that the file will be set to.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetFileAsync(Guid, Int32, String, String, String, Object, CancellationToken)

[Preview API] Gets a file from the build.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetFileAsync (Guid project, int buildId, string artifactName, string fileId, string fileName, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetFileAsync : Guid * int * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetFileAsync : Guid * int * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>

Parameters

project
Guid

Project ID

buildId
Int32

The ID of the build.

artifactName
String

The name of the artifact.

fileId
String

The primary key for the file.

fileName
String

The name that the file will be set to.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to