Share via


EnableQueryAttribute.AllowedOrderByProperties Property

 

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

Note, by default this string is null, 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.

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

Syntax

public string AllowedOrderByProperties { get; set; }
public:
property String^ AllowedOrderByProperties {
    String^ get();
    void set(String^ value);
}
member AllowedOrderByProperties : string with get, set
Public Property AllowedOrderByProperties As String

Property Value

Type: System.String

See Also

EnableQueryAttribute Class
System.Web.OData Namespace

Return to top