WorkItemTrackingHttpClientBase.GetAttachmentZipAsync 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
| GetAttachmentZipAsync(Guid, String, Nullable<Boolean>, Object, CancellationToken) |
[Preview API] Downloads an attachment. |
| GetAttachmentZipAsync(Guid, Guid, String, Nullable<Boolean>, Object, CancellationToken) |
[Preview API] Downloads an attachment. |
| GetAttachmentZipAsync(String, Guid, String, Nullable<Boolean>, Object, CancellationToken) |
[Preview API] Downloads an attachment. |
GetAttachmentZipAsync(Guid, String, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Downloads an attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentZipAsync(Guid id, string fileName = null, Nullable<bool> download = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetAttachmentZipAsync : Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- id
- Guid
Attachment ID
- fileName
- String
Name of the file
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetAttachmentZipAsync(Guid, Guid, String, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Downloads an attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentZipAsync(Guid project, Guid id, string fileName = null, Nullable<bool> download = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetAttachmentZipAsync : Guid * Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- project
- Guid
Project ID
- id
- Guid
Attachment ID
- fileName
- String
Name of the file
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetAttachmentZipAsync(String, Guid, String, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Downloads an attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentZipAsync(string project, Guid id, string fileName = null, Nullable<bool> download = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetAttachmentZipAsync : string * Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- project
- String
Project ID or project name
- id
- Guid
Attachment ID
- fileName
- String
Name of the file
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.