Share via


ODataValidationSettings.AllowedFunctions Property

Definition

Gets or sets a list of allowed functions used in the $filter query.

The allowed functions include the following:

String related: contains, endswith, startswith, length, indexof, substring, tolower, toupper, trim, concat

e.g. ~/Customers?$filter=length(CompanyName) eq 19

Date and Time related: year, month, day, hour, minute, second, fractionalseconds, date, time

e.g. ~/Employees?$filter=year(BirthDate) eq 1971

Math related: round, floor, ceiling

Type related:isof, cast,

Collection related: any, all

public Microsoft.AspNet.OData.Query.AllowedFunctions AllowedFunctions { get; set; }
member this.AllowedFunctions : Microsoft.AspNet.OData.Query.AllowedFunctions with get, set
Public Property AllowedFunctions As AllowedFunctions

Property Value

Applies to