ODataValidationSettings.AllowedOrderByProperties Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)