ExperimentationService.GetDoubleTreatmentVariableAsync Method

Definition

Returns the value of the Treatment Variable or null if not found. Example: TV: VisualStudio.numTreatmentVariable: 4.3

C++
public:
 virtual System::Threading::Tasks::Task<Nullable<double>> ^ GetDoubleTreatmentVariableAsync(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. numTreatmentVariable)

token
CancellationToken

Cancellation token

Returns

double? 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