Share via


ExperimentationService.GetBoolTreatmentVariableAsync Method

Definition

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

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

Parameters

configId
String

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

varName
String

Treatment variable name. (e.g. boolTreatmentVariable)

token
CancellationToken

Cancellation token

Returns

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