Edit

TestCompatHttpClientBase.CreateTestVariableAsync Method

Definition

Overloads

CreateTestVariableAsync(TestVariable, Guid, Object, CancellationToken)
Obsolete.

[Preview API] Create a test variable.

CreateTestVariableAsync(TestVariable, String, Object, CancellationToken)
Obsolete.

[Preview API] Create a test variable.

CreateTestVariableAsync(TestVariable, Guid, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Create a test variable.

[System.Obsolete]
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

TestVariable

project
Guid

Project ID

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

CreateTestVariableAsync(TestVariable, String, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Create a test variable.

[System.Obsolete]
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

TestVariable

project
String

Project ID or project name

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to