TestResultsHttpClientBase.CreateTestResultAttachmentAsync 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
CreateTestResultAttachmentAsync(TestAttachmentRequestModel, Guid, Int32, Int32, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference> CreateTestResultAttachmentAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel attachmentRequestModel, Guid project, int runId, int testCaseResultId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
override this.CreateTestResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
Parameters
- attachmentRequestModel
- TestAttachmentRequestModel
- project
- Guid
Project ID
- runId
- Int32
- testCaseResultId
- Int32
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreateTestResultAttachmentAsync(TestAttachmentRequestModel, String, Int32, Int32, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference> CreateTestResultAttachmentAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel attachmentRequestModel, string project, int runId, int testCaseResultId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
override this.CreateTestResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
Parameters
- attachmentRequestModel
- TestAttachmentRequestModel
- project
- String
Project ID or project name
- runId
- Int32
- testCaseResultId
- Int32
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.