OrderType Enumeration

 

Applies To: Dynamics CRM 2015

Contains the possible values for the order type in an OrderExpression.

Namespace:   Microsoft.Xrm.Sdk.Query
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

[DataContractAttribute(Name = "OrderType", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public enum OrderType
[DataContractAttribute(Name = "OrderType", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public enum class OrderType
[<DataContractAttribute(Name = "OrderType", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")>]
type OrderType
<DataContractAttribute(Name := "OrderType", Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
Public Enumeration OrderType

Members

Member name Description
Ascending

The values of the specified attribute should be sorted in ascending order, from lowest to highest. Value = 0.

Descending

The values of the specified attribute should be sorted in descending order, from highest to lowest. Value = 1.

See Also

Microsoft.Xrm.Sdk.Query Namespace
Page large result sets with QueryExpression
Sample: Create and update records with related records (early bound)

Return to top

© 2016 Microsoft. All rights reserved. Copyright