ODataValidationSettings Class

 

This class describes the validation settings for querying.

Namespace:   System.Web.Http.OData.Query
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

System::Object
  System.Web.Http.OData.Query::ODataValidationSettings

public ref class ODataValidationSettings 

NameDescription
System_CAPS_pubpropertyAllowedArithmeticOperators

Gets or sets a list of allowed arithmetic operators including 'add', 'sub', 'mul', 'div', 'mod'.

System_CAPS_pubpropertyAllowedFunctions

Gets or sets a list of allowed functions used in the $filter query. The allowed 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, years, month, months, day, days, hour, hours, minute, minutes, second, seconds e.g. ~/Employees?$filter=year(BirthDate) eq 1971 Math related: round, floor, ceiling Type related:isof, cast, Collection related: any, all

System_CAPS_pubpropertyAllowedLogicalOperators

Gets or sets a list of allowed logical operators such as 'eq', 'ne', 'gt', 'ge', 'lt', 'le', 'and', 'or', 'not'.

System_CAPS_pubpropertyAllowedOrderByProperties

Gets a list of properties one can orderby the result with. Note, by default this list is empty, it means it can be ordered by any property. For example, having an empty collection means client can order the queryable result by any properties. Adding "Name" to this list means that it only allows queryable result to be ordered by Name property.

System_CAPS_pubpropertyAllowedQueryOptions

Gets or sets the query parameters that are allowed inside query. The default is all query options, including $filter, $skip, $top, $orderby, $expand, $select, $inlineCount, $format and $skiptoken.

System_CAPS_pubpropertyMaxAnyAllExpressionDepth

Gets or sets the maximum depth of the Any or All elements nested inside the query.

System_CAPS_pubpropertyMaxExpansionDepth

Gets or sets the max expansion depth for the $expand query option.

System_CAPS_pubpropertyMaxNodeCount

Gets or sets the maximum number of the nodes inside the $filter syntax tree.

System_CAPS_pubpropertyMaxOrderByNodeCount

Gets or sets the maximum number of expressions that can be present in the $orderby.

System_CAPS_pubpropertyMaxSkip

Gets or sets the max value of $skip that a client can request.

System_CAPS_pubpropertyMaxTop

Gets or sets the max value of $top that a client can request.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: