QueryByAttribute.AddOrder(String, OrderType) QueryByAttribute.AddOrder(String, OrderType) QueryByAttribute.AddOrder(String, OrderType) Method

Definition

Adds an order to the orders collection.

public:
 void AddOrder(System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::OrderType orderType);
public void AddOrder (string attributeName, Microsoft.Xrm.Sdk.Query.OrderType orderType);
member this.AddOrder : string * Microsoft.Xrm.Sdk.Query.OrderType -> unit

Parameters

attributeName
String String String

Type: String. The logical name of the attribute.

orderType
OrderType OrderType OrderType

Type: OrderType. The order for that attribute.

Applies to