Language

PipelineContextBase.ExpandVariables Method

Definition

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

Newtonsoft.Json.Linq.JToken

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

Implements

Applies to