Share via


ODataValidationSettings.AllowedOrderByProperties Property

 

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.

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

Syntax

public Collection<string> AllowedOrderByProperties { get; }
public:
property Collection<String^>^ AllowedOrderByProperties {
    Collection<String^>^ get();
}
member AllowedOrderByProperties : Collection<string> with get
Public ReadOnly Property AllowedOrderByProperties As Collection(Of String)

Property Value

Type: System.Collections.ObjectModel.Collection<String>

See Also

ODataValidationSettings Class
System.Web.OData.Query Namespace

Return to top