EnableQueryAttribute.AllowedFunctions Property
Gets or sets a value that represents a list of allowed functions used in the $filter query. The allowed functions include the following:
[list type="definition"] [item] [term]String related[/term] [description]substringof, endswith, startswith, length, indexof, substring, tolower, toupper, trim, concat e.g. ~/Customers?$filter=length(CompanyName) eq 19[/description] [/item] [item] [term]DateTime related[/term] [description]year, years, month, months, day, days, hour, hours, minute, minutes, second, seconds e.g. ~/Employees?$filter=year(BirthDate) eq 1971[/description] [/item] [item] [term]Math related[/term] [description]round, floor, ceiling[/description] [/item] [item] [term]Type related[/term] [description]isof, cast[/description] [/item] [item] [term]Collection related[/term] [description]any, all[/description] [/item] [/list]
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.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.Http.OData.Query.AllowedFunctions
See Also
EnableQueryAttribute Class
System.Web.Http.OData Namespace
Return to top