다음을 통해 공유


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

public:
 virtual System::Threading::Tasks::Task<Nullable<int>> ^ GetIntTreatmentVariableAsync(System::String ^ configId, System::String ^ varName, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<int?> GetIntTreatmentVariableAsync (string configId, string varName, System.Threading.CancellationToken token);
abstract member GetIntTreatmentVariableAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Nullable<int>>
override this.GetIntTreatmentVariableAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Nullable<int>>
Public Function GetIntTreatmentVariableAsync (configId As String, varName As String, token As CancellationToken) As Task(Of Nullable(Of Integer))

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