Edit

Share via


BuildHttpClientBase.GetAttachmentsAsync Method

Definition

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.

Returns

Applies to