Edit

TestHttpClientBase.CreateTestVariableAsync Method

Definition

Overloads

CreateTestVariableAsync(TestVariable, Guid, Object, CancellationToken)

[Preview API]

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable> CreateTestVariableAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable testVariable, Guid project, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestVariableAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable>
override this.CreateTestVariableAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable>

Parameters

testVariable
TestVariable
project
Guid

Project ID

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateTestVariableAsync(TestVariable, String, Object, CancellationToken)

[Preview API]

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable> CreateTestVariableAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable testVariable, string project, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestVariableAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable>
override this.CreateTestVariableAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestVariable>

Parameters

testVariable
TestVariable
project
String

Project ID or project name

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to