QueryableAttribute.AllowedOrderByProperties Property

Gets or sets a string with comma-separated list of property names. The queryable result can only be ordered by those properties defined in this list.

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

Syntax

'Declaration
Public Property AllowedOrderByProperties As String 
    Get 
    Set
'Usage
Dim instance As QueryableAttribute 
Dim value As String 

value = instance.AllowedOrderByProperties

instance.AllowedOrderByProperties = value
public string AllowedOrderByProperties { get; set; }
public:
property String^ AllowedOrderByProperties {
    String^ get ();
    void set (String^ value);
}
member AllowedOrderByProperties : string with get, set
function get AllowedOrderByProperties () : String 
function set AllowedOrderByProperties (value : String)

Property Value

Type: System.String
A comma-separated list of property names that can be used to order.

Remarks

Note, by default this string is a null reference (Nothing in Visual Basic), which means it can be ordered by any property. For example, setting this value to null or empty string means that we allow ordering the queryable result by any properties. Setting this value to "Name" means we only allow queryable result to be ordered by Name property.

See Also

Reference

QueryableAttribute Class

System.Web.Http Namespace