Share via


ODataValidationSettings Class

This class describes the validation settings for querying.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class ODataValidationSettings
'Usage
Dim instance As ODataValidationSettings
public class ODataValidationSettings
public ref class ODataValidationSettings
type ODataValidationSettings =  class end
public class ODataValidationSettings

The ODataValidationSettings type exposes the following members.

Constructors

  Name Description
Public method ODataValidationSettings Initializes a new instance of the ODataValidationSettings class.

Top

Properties

  Name Description
Public property AllowedArithmeticOperators Gets or sets a list of allowed arithmetic operators including 'add', 'sub', 'mul', 'div', 'mod'.
Public property AllowedFunctions Gets or sets a list of allowed functions used in the $filter query.
Public property AllowedLogicalOperators Gets or sets a list of allowed logical operators such as 'eq', 'ne', 'gt', 'ge', 'lt', 'le', 'and', 'or', 'not'.
Public property AllowedOrderByProperties Gets a list of properties one can orderby the result with.
Public property AllowedQueryOptions Gets or sets the query parameters that are allowed inside query.
Public property MaxAnyAllExpressionDepth Gets or sets the maximum depth of the Any or All elements nested inside the query.
Public property MaxExpansionDepth Gets or sets the max expansion depth for the expand query option.
Public property MaxNodeCount Gets or sets the maximum number of the nodes inside the $filter syntax tree.
Public property MaxOrderByNodeCount Gets or sets the maximum number of expressions that can be present in the $orderby.
Public property MaxSkip Gets or sets the max value of $skip that a client can request.
Public property MaxTop Gets or sets the max value of $top that a client can request.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

No content here will be updated; please do not add material here.

Thread Safety

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

See Also

Reference

System.Web.Http.OData.Query Namespace