BuildHttpClientBase.GetFileAsync 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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for