WorkItemTrackingHttpClientBase.GetAttachmentContentAsync WorkItemTrackingHttpClientBase.GetAttachmentContentAsync Method

Definition

Overloads

GetAttachmentContentAsync(Guid, String, Nullable<Boolean>, Object, CancellationToken) GetAttachmentContentAsync(Guid, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Downloads an attachment.

GetAttachmentContentAsync(Guid, Guid, String, Nullable<Boolean>, Object, CancellationToken) GetAttachmentContentAsync(Guid, Guid, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Downloads an attachment.

GetAttachmentContentAsync(String, Guid, String, Nullable<Boolean>, Object, CancellationToken) GetAttachmentContentAsync(String, Guid, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Downloads an attachment.

GetAttachmentContentAsync(Guid, String, Nullable<Boolean>, Object, CancellationToken) GetAttachmentContentAsync(Guid, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Downloads an attachment.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync (Guid id, string fileName = null, Nullable<bool> download = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetAttachmentContentAsync : Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>

Parameters

id
Guid Guid

Attachment ID

fileName
String String

Name of the file

download
Nullable<Boolean>

If set to true always download attachment

userState
Object Object
cancellationToken
CancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

GetAttachmentContentAsync(Guid, Guid, String, Nullable<Boolean>, Object, CancellationToken) GetAttachmentContentAsync(Guid, Guid, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Downloads an attachment.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync (Guid project, Guid id, string fileName = null, Nullable<bool> download = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetAttachmentContentAsync : Guid * Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>

Parameters

project
Guid Guid

Project ID

id
Guid Guid

Attachment ID

fileName
String String

Name of the file

download
Nullable<Boolean>

If set to true always download attachment

userState
Object Object
cancellationToken
CancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

GetAttachmentContentAsync(String, Guid, String, Nullable<Boolean>, Object, CancellationToken) GetAttachmentContentAsync(String, Guid, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Downloads an attachment.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync (string project, Guid id, string fileName = null, Nullable<bool> download = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetAttachmentContentAsync : string * Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>

Parameters

project
String String

Project ID or project name

id
Guid Guid

Attachment ID

fileName
String String

Name of the file

download
Nullable<Boolean>

If set to true always download attachment

userState
Object Object
cancellationToken
CancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Applies to