WorkItemTrackingHttpClientCompatBase.CreateAttachmentAsync 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
| CreateAttachmentAsync(String, String, Object, CancellationToken) |
Obsolete.
|
| CreateAttachmentAsync(Stream, String, String, Object, CancellationToken) |
Obsolete.
[Preview API] Creates an attachment. |
CreateAttachmentAsync(String, String, Object, CancellationToken)
Caution
This API is now deprecated.
[System.Obsolete]
public System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.AttachmentReference> CreateAttachmentAsync(string fileName, string uploadType, object userState, System.Threading.CancellationToken cancellationToken);
member this.CreateAttachmentAsync : string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.AttachmentReference>
Parameters
- fileName
- String
- uploadType
- String
- userState
- Object
- cancellationToken
- CancellationToken
Returns
- Attributes
Applies to
CreateAttachmentAsync(Stream, String, String, Object, CancellationToken)
Caution
This API is now deprecated.
[Preview API] Creates an attachment.
[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.AttachmentReference> CreateAttachmentAsync(System.IO.Stream uploadStream, string fileName, string uploadType, object userState, System.Threading.CancellationToken cancellationToken);
abstract member CreateAttachmentAsync : System.IO.Stream * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.AttachmentReference>
override this.CreateAttachmentAsync : System.IO.Stream * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.AttachmentReference>
Parameters
- uploadStream
- Stream
Stream to upload
- fileName
- String
- uploadType
- String
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
- Attributes