Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Query Inheritance: System.Object

Syntax

Microsoft.Restier.Core.Query.QueryExpressionContext

Summary

Represents context for a query expression that is used during query expression processing.

Constructors

.ctor

Initializes a new instance of the QueryExpressionContext class.

Syntax

public QueryExpressionContext(Microsoft.Restier.Core.Query.QueryContext queryContext)

Parameters

NameTypeDescription
queryContextMicrosoft.Restier.Core.Query.QueryContextA query context.

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

AfterNestedVisitCallback

Gets or sets an action that is invoked after an expanded or filtered expression has been visited.

Syntax

public System.Action AfterNestedVisitCallback { get; set; }

Property Value

Type: System.Action

ModelReference

Gets a reference to the model element that represents the visited node.

Syntax

public Microsoft.Restier.Core.Query.QueryModelReference ModelReference { get; }

Property Value

Type: Microsoft.Restier.Core.Query.QueryModelReference

QueryContext

Gets the query context associated with this context.

Syntax

public Microsoft.Restier.Core.Query.QueryContext QueryContext { get; private set; }

Property Value

Type: Microsoft.Restier.Core.Query.QueryContext

VisitedNode

Gets the expression node that is being visited.

Syntax

public System.Linq.Expressions.Expression VisitedNode { get; }

Property Value

Type: System.Linq.Expressions.Expression

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetModelReferenceForNode

Gets a reference to the model element that represents an expression node.

Syntax

public Microsoft.Restier.Core.Query.QueryModelReference GetModelReferenceForNode(System.Linq.Expressions.Expression node)

Parameters

NameTypeDescription
nodeSystem.Linq.Expressions.ExpressionAn expression node.

Returns

Type: Microsoft.Restier.Core.Query.QueryModelReference A reference to the model element that represents the expression node.

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

PopVisitedNode

Pops a visited node.

Syntax

public void PopVisitedNode()

PushVisitedNode

Pushes a visited node.

Syntax

public void PushVisitedNode(System.Linq.Expressions.Expression visitedNode)

Parameters

NameTypeDescription
visitedNodeSystem.Linq.Expressions.ExpressionA visited node.

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ReplaceVisitedNode

Replaces the visited node.

Syntax

public void ReplaceVisitedNode(System.Linq.Expressions.Expression visitedNode)

Parameters

NameTypeDescription
visitedNodeSystem.Linq.Expressions.ExpressionA new visited node.

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?