Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

OrderExpression Class

Definition

Namespace:
Microsoft.Xrm.Sdk.Query
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Sets the order in which the records are returned from the query.

public ref class OrderExpression sealed : System::Runtime::Serialization::IExtensibleDataObject
[System.Runtime.Serialization.DataContract(Name="OrderExpression", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class OrderExpression : System.Runtime.Serialization.IExtensibleDataObject
[<System.Runtime.Serialization.DataContract(Name="OrderExpression", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")>]
type OrderExpression = class
 interface IExtensibleDataObject
Public NotInheritable Class OrderExpression
Implements IExtensibleDataObject
Inheritance
OrderExpression
Attributes
Implements

Constructors

Name Description
OrderExpression()

Initializes a new instance of the OrderExpression class.

OrderExpression(String, OrderType, String, String)

Initializes a new instance of the OrderExpression class setting the AttributeName, OrderType, Alias, and EntityName properties.

OrderExpression(String, OrderType, String)

Initializes a new instance of the OrderExpression class setting the AttributeName, OrderType, and Alias properties.

OrderExpression(String, OrderType)

Initializes a new instance of the OrderExpression class setting the AttributeName and OrderType properties.

Properties

Name Description
Alias

Gets or sets the alias of the column used to group aggregated data.

AttributeName

Gets or sets the logical name of the column in the order expression.

EntityName

Gets or sets the logical name of the table that contains the column.

ExtensionData

Gets or sets the structure that contains extra data.

OrderType

Gets or sets the order, ascending or descending.

Applies to