Edit

Share via


BuildHttpClientBase.GetAttachmentAsync Method

Definition

Overloads

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

[Preview API] Gets a specific attachment.

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

[Preview API] Gets a specific attachment.

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

[Preview API] Gets a specific attachment.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentAsync (Guid project, int buildId, Guid timelineId, Guid recordId, string type, string name, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentAsync : Guid * int * Guid * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentAsync : Guid * int * Guid * Guid * 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.

timelineId
Guid

The ID of the timeline.

recordId
Guid

The ID of the timeline record.

type
String

The type of the attachment.

name
String

The name of the attachment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

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

[Preview API] Gets a specific attachment.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentAsync (string project, int buildId, Guid timelineId, Guid recordId, string type, string name, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentAsync : string * int * Guid * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentAsync : string * int * Guid * Guid * 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.

timelineId
Guid

The ID of the timeline.

recordId
Guid

The ID of the timeline record.

type
String

The type of the attachment.

name
String

The name of the attachment.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to