ExperimentationService.GetStringTreatmentVariableAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.