EnableQueryAttribute.AllowedFunctions Property
Gets or sets a value that represents a list of allowed functions used in the $filter query. Supported functions include the following:
String related:
substringof, endswith, startswith, length, indexof, substring, tolower, toupper, trim, concat e.g. ~/Customers?$filter=length(CompanyName) eq 19
DateTime 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
Namespace: System.Web.OData
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public AllowedFunctions AllowedFunctions { get; set; }
public:
property AllowedFunctions AllowedFunctions {
AllowedFunctions get();
void set(AllowedFunctions value);
}
member AllowedFunctions : AllowedFunctions with get, set
Public Property AllowedFunctions As AllowedFunctions
Property Value
Type: System.Web.OData.Query.AllowedFunctions
See Also
EnableQueryAttribute Class
System.Web.OData Namespace
Return to top