다음을 통해 공유


IExperimentationService3.GetDoubleTreatmentVariableAsync Method

Definition

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

public:
 System::Threading::Tasks::Task<Nullable<double>> ^ GetDoubleTreatmentVariableAsync(System::String ^ configId, System::String ^ varName, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<double?> GetDoubleTreatmentVariableAsync (string configId, string varName, System.Threading.CancellationToken token);
abstract member GetDoubleTreatmentVariableAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Nullable<double>>
Public Function GetDoubleTreatmentVariableAsync (configId As String, varName As String, token As CancellationToken) As Task(Of Nullable(Of Double))

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.

Applies to