ODataValidationSettings.AllowedOrderByProperties Property
Gets a list of properties one can orderby the result with.
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public ReadOnly Property AllowedOrderByProperties As Collection(Of String)
Get
'Usage
Dim instance As ODataValidationSettings
Dim value As Collection(Of String)
value = instance.AllowedOrderByProperties
public Collection<string> AllowedOrderByProperties { get; }
public:
property Collection<String^>^ AllowedOrderByProperties {
Collection<String^>^ get ();
}
member AllowedOrderByProperties : Collection<string>
function get AllowedOrderByProperties () : Collection<String>
Property Value
Type: System.Collections.ObjectModel.Collection<String>
A list of properties one can orderby the result with. By default, this list is empty which means it can be ordered by any property.
Remarks
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.