次の方法で共有


QueryExpression.AddOrder Method

Definition

Overloads

AddOrder(String, OrderType)

Adds the specified OrderExpression to the query expression, setting the AttributeName and OrderType properties.

AddOrder(String, OrderType, String, String)

Adds the specified OrderExpression to the query expression, setting the AttributeName and OrderType, Alias and EntityName properties.

AddOrder(String, OrderType)

Adds the specified OrderExpression to the query expression, setting the AttributeName and OrderType properties.

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
Public Sub AddOrder (attributeName As String, orderType As OrderType)

Parameters

attributeName
String

The logical name of the column.

orderType
OrderType

The order type.

Applies to

AddOrder(String, OrderType, String, String)

Adds the specified OrderExpression to the query expression, setting the AttributeName and OrderType, Alias and EntityName properties.

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

Parameters

attributeName
String

The logical name of the column.

orderType
OrderType

The order type.

alias
String
entityName
String

The logical name of the table.

Applies to