Language

PipelineContextBase.Evaluate Method

Definition

Overloads

Name Description
Evaluate(JObject)

Expand all variables and macros present as values (not keys) in a given JObject. Conditionally record unresolved expressions or macros as errors.

Evaluate<T>(String)

Evalutes the provided expression using the current context.

Evaluate(JObject)

Expand all variables and macros present as values (not keys) in a given JObject. Conditionally record unresolved expressions or macros as errors.

public Microsoft.TeamFoundation.DistributedTask.Pipelines.ExpressionResult<Newtonsoft.Json.Linq.JObject> Evaluate(Newtonsoft.Json.Linq.JObject value);
abstract member Evaluate : Newtonsoft.Json.Linq.JObject -> Microsoft.TeamFoundation.DistributedTask.Pipelines.ExpressionResult<Newtonsoft.Json.Linq.JObject>
override this.Evaluate : Newtonsoft.Json.Linq.JObject -> Microsoft.TeamFoundation.DistributedTask.Pipelines.ExpressionResult<Newtonsoft.Json.Linq.JObject>
Public Function Evaluate (value As JObject) As ExpressionResult(Of JObject)

Parameters

value
Newtonsoft.Json.Linq.JObject

Returns

ExpressionResult<Newtonsoft.Json.Linq.JObject>

Implements

Applies to

Evaluate<T>(String)

Evalutes the provided expression using the current context.

public Microsoft.TeamFoundation.DistributedTask.Pipelines.ExpressionResult<T> Evaluate<T>(string expression);
abstract member Evaluate : string -> Microsoft.TeamFoundation.DistributedTask.Pipelines.ExpressionResult<'T>
override this.Evaluate : string -> Microsoft.TeamFoundation.DistributedTask.Pipelines.ExpressionResult<'T>
Public Function Evaluate(Of T) (expression As String) As ExpressionResult(Of T)

Type Parameters

T

The type of result expected

Parameters

expression
String

The expression string to evaluate

Returns

A value indicating the evaluated result and whether or not secrets were accessed during evaluation

Implements

Applies to