PipelineContextBase.ExpandVariables 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.
Overloads
| Name | Description |
|---|---|
| ExpandVariables(JToken) |
Expand macros of the format $(variableName) using the current context. |
| ExpandVariables(String, Boolean) |
Expand macros of the format $(variableName) using the current context. |
ExpandVariables(JToken)
Expand macros of the format $(variableName) using the current context.
public Newtonsoft.Json.Linq.JToken ExpandVariables(Newtonsoft.Json.Linq.JToken value);
member this.ExpandVariables : Newtonsoft.Json.Linq.JToken -> Newtonsoft.Json.Linq.JToken
Public Function ExpandVariables (value As JToken) As JToken
Parameters
- value
- Newtonsoft.Json.Linq.JToken
The JToken value which contains macros to expand
Returns
The evaluated value with all defined macros expanded to the value in the current context
Applies to
ExpandVariables(String, Boolean)
Expand macros of the format $(variableName) using the current context.
public string ExpandVariables(string value, bool maskSecrets = false);
abstract member ExpandVariables : string * bool -> string
override this.ExpandVariables : string * bool -> string
Public Function ExpandVariables (value As String, Optional maskSecrets As Boolean = false) As String
Parameters
- value
- String
The value which contains macros to expand
- maskSecrets
- Boolean
True if secrets should be replaced with '***'; otherwise, false
Returns
The evaluated value with all defined macros expanded to the value in the current context