VariableUtility Class
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.
public static class VariableUtility
type VariableUtility = class
Public Class VariableUtility
- Inheritance
-
VariableUtility
Methods
ExpandConditionVariables(String, IDictionary<String,String>, Boolean) |
Replaces variable references of the form variables['variable_name'] with corresponding replacement values |
ExpandVariables(JToken, IDictionary<String,String>, Boolean) |
Replaces variables by recursively cloning tokens in a JObject or JArray by Walks tokens and uses ExpandVariables(string, vars) to resolve all string tokens |
ExpandVariables(JToken, IDictionary<String,String>) |
Replaces variables by recursively cloning tokens in a JObject or JArray by Walks tokens and uses ExpandVariables(string, vars) to resolve all string tokens |
ExpandVariables(JToken, IList<IDictionary<String,String>>) |
Replaces multiple variable sets by recursively cloning tokens in a JObject or JArray. Walks tokens and uses ExpandVariables(string, vars) for each set of variables on all string tokens |
ExpandVariables(JToken, VariablesDictionary, Boolean) | |
ExpandVariables(String, IDictionary<String,String>, Boolean) |
Replaces variable references of the form $(variable) with the corresponding replacement value. Values populated into the environment directly are used first. If no value is found in the automation environment then the machine environment variables will be used as a fall back. |
ExpandVariables(String, IDictionary<String,String>) |
An overload method for ExpandVariables Expand variables in the input provided using the dictionary and the machine's environment variables |
ExpandVariables(String, IDictionary<String,VariableValue>, Boolean, Boolean) |
Replaces variable references of the form $(variable) with the corresponding replacement value. Values populated into the environment directly are used first. If no value is found in the automation environment then the machine environment variables will be used as a fall back. |
ExpandVariables(String, IDictionary<String,VariableValue>, Boolean) |
Replaces variable references of the form $(variable) with the corresponding replacement value. Values populated into the environment directly are used first. If no value is found in the automation environment then the machine environment variables will be used as a fall back. |
ExpandVariables(String, VariablesDictionary, Boolean, Boolean) |
Replaces variable references of the form $(variable) with the corresponding replacement value. Values populated into the environment directly are used first. If no value is found in the automation environment then the machine environment variables will be used as a fall back. |
ExpandVariables(String, VariablesDictionary, Boolean) |
Replaces variable references of the form $(variable) with the corresponding replacement value. Values populated into the environment directly are used first. If no value is found in the automation environment then the machine environment variables will be used as a fall back. |
GetEnableAccessTokenType(IDictionary<String,VariableValue>) | |
IsVariable(String) | |
PrepareReplacementStringForConditions(String) |
Prepare replacement string from the given input. For a normal input, add ' around it. Convert a variable of format ${var} to variables['var'] to suit custom conditions |