Share via


UrlExpressionVisitor Class

Definition

Expression visitor class that generates OData style $filter parameter.

public class UrlExpressionVisitor : System.Linq.Expressions.ExpressionVisitor
type UrlExpressionVisitor = class
    inherit ExpressionVisitor
Public Class UrlExpressionVisitor
Inherits ExpressionVisitor
Inheritance
UrlExpressionVisitor

Constructors

UrlExpressionVisitor(Expression, Boolean)

Initializes a new instance of UrlExpressionVisitor.

UrlExpressionVisitor(Expression)

Initializes a new instance of UrlExpressionVisitor. Skips null parameters.

Methods

ToString()

Returns string representation of the current expression.

VisitBinary(BinaryExpression)

Visits binary expression (e.g. ==, &&, >, etc).

VisitConditional(ConditionalExpression)

Visits conditional expression (e.g. foo == true ? bar : fee). Throws NotSupportedException.

VisitConstant(ConstantExpression)

Visits constants (e.g. 'a' or 123).

VisitMember(MemberExpression)

Visits object members (e.g. p.Foo or dateTime.Hour).

VisitMethodCall(MethodCallExpression)

Visits method calls including Contains, StartsWith, and EndWith. Methods that are not supported will throw an exception.

VisitNew(NewExpression)

Visits new object expression (e.g. new DateTime()).

VisitUnary(UnaryExpression)

Visits unary expression (e.g. !foo).

Applies to