Share via


ODataValidationSettings.AllowedOrderByProperties Property

Definition

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.

public System.Collections.ObjectModel.Collection<string> AllowedOrderByProperties { get; }
member this.AllowedOrderByProperties : System.Collections.ObjectModel.Collection<string>
Public ReadOnly Property AllowedOrderByProperties As Collection(Of String)

Property Value

Applies to