Share via


ExperimentationService.GetStringTreatmentVariableAsync Method

Definition

Returns the string value of the Treatment Variable or null if not found or wrong type. Example: TV: VisualStudio.stringTreatmentVariable: "foo"

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

Parameters

configId
String

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

varName
String

Treatment variable name. (e.g. stringTreatmentVariable)

token
CancellationToken

Cancellation token

Returns

string 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