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