Edit

TestCompatHttpClientBase.GetTestVariableByIdAsync Method

Definition

Overloads

GetTestVariableByIdAsync(Guid, Int32, Object, CancellationToken)
Obsolete.

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

GetTestVariableByIdAsync(String, Int32, Object, CancellationToken)
Obsolete.

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

GetTestVariableByIdAsync(Guid, Int32, Object, CancellationToken)

Caution

This API is now deprecated.

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

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

Parameters

project
Guid

Project ID

testVariableId
Int32

ID of the test variable to get.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetTestVariableByIdAsync(String, Int32, Object, CancellationToken)

Caution

This API is now deprecated.

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

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

Parameters

project
String

Project ID or project name

testVariableId
Int32

ID of the test variable to get.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to