BuildHttpClientBase.GetArtifactsAsync 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
GetArtifactsAsync(String, Int32, Object, CancellationToken) |
[Preview API] Gets all artifacts for a build. |
GetArtifactsAsync(Guid, Int32, Object, CancellationToken) |
[Preview API] Gets all artifacts for a build. |
GetArtifactsAsync(Int32, Object, CancellationToken) |
Gets all artifacts for a build. |
GetArtifactsAsync(String, Int32, Object, CancellationToken)
[Preview API] Gets all artifacts for a build.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>> GetArtifactsAsync (string project, int buildId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetArtifactsAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>>
override this.GetArtifactsAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>>
Parameters
- project
- String
Project ID or project name
- buildId
- Int32
The ID of the build.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetArtifactsAsync(Guid, Int32, Object, CancellationToken)
[Preview API] Gets all artifacts for a build.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>> GetArtifactsAsync (Guid project, int buildId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetArtifactsAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>>
override this.GetArtifactsAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>>
Parameters
- project
- Guid
Project ID
- buildId
- Int32
The ID of the build.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetArtifactsAsync(Int32, Object, CancellationToken)
Gets all artifacts for a build.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>> GetArtifactsAsync (int buildId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetArtifactsAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>>
override this.GetArtifactsAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.BuildArtifact>>
Parameters
- buildId
- Int32
The ID of the build.
- 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