This documentation is archived and is not being maintained.

OrderExpression Class (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Sets the order in which the entity instances are returned from the query.

The OrderExpression class exposes the following members.

OrderExpressionInitializes a new instance of the OrderExpression class.

Instance PropertyDescription
AttributeNameGets or sets the name of the attribute in the order expression.
OrderTypeGets or sets the ascending or descending order.


The results of the query operation can be sorted independently in ascending or descending order for each entity attribute. For example, you can sort the attribute store_department in descending order, and the attribute employee_name in ascending order.


Web Service: CrmService

See Also


© 2010 Microsoft Corporation. All rights reserved.