Edit

TestCompatHttpClientBase.UpdateTestVariableAsync Method

Definition

Overloads

UpdateTestVariableAsync(TestVariable, Guid, Int32, Object, CancellationToken)
Obsolete.

[Preview API] Update a test variable by its ID.

UpdateTestVariableAsync(TestVariable, String, Int32, Object, CancellationToken)
Obsolete.

[Preview API] Update a test variable by its ID.

UpdateTestVariableAsync(TestVariable, Guid, Int32, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Update a test variable by its ID.

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

Parameters

testVariable
TestVariable

TestVariable

project
Guid

Project ID

testVariableId
Int32

ID of the test variable to update.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

UpdateTestVariableAsync(TestVariable, String, Int32, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Update a test variable by its ID.

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

Parameters

testVariable
TestVariable

TestVariable

project
String

Project ID or project name

testVariableId
Int32

ID of the test variable to update.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to