ExperimentationService.GetIntTreatmentVariableAsync Method

Definition

Returns the int value of the Treatment Variable or null if not found or wrong type. Example: TV: VisualStudio.intTreatmentVariable: 42

C++
public:
 virtual System::Threading::Tasks::Task<Nullable<int>> ^ GetIntTreatmentVariableAsync(System::String ^ configId, System::String ^ varName, System::Threading::CancellationToken token);

Parameters

configId
String

ConfigId. This is the intial part of the Treatment variable name. (e.g. VisualStudio)

varName
String

Treatment variable name. (e.g. intTreatmentVariable)

token
CancellationToken

Cancellation token

Returns

int? Task<TResult>Value of Treatment Variable, null is returned if the treatment variable requested is not present or of a differnt type.

Implements

Applies to

Produit Versions
Visual Studio SDK 2022