WorkItemTrackingHttpClientCompatBase.GetAttachmentContentAsync 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.
[Preview API] Downloads an attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync(Guid id, string fileName, object userState, System.Threading.CancellationToken cancellationToken);
abstract member GetAttachmentContentAsync : Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentContentAsync : Guid * string * 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.