Partager via


XrmAttributeExpression Class

Definition

Contains the data that describes how column data should aggregated or grouped.

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

Remarks

Use this class to set the ColumnSet.AttributeExpressions collection when you want to retrieve aggregate information for a column in a query.

Constructors

XrmAttributeExpression()

Initializes a new instance of the XrmAttributeExpression class.

XrmAttributeExpression(String, XrmAggregateType, String, XrmDateTimeGrouping)

Initializes a new instance of the XrmAttributeExpression class, setting the AttributeName, AggregateType, Alias, and DateTimeGrouping properties.

XrmAttributeExpression(String, XrmAggregateType, String)

Initializes a new instance of the XrmAttributeExpression class, setting the AttributeName, AggregateType, and Alias properties.

XrmAttributeExpression(String, XrmAggregateType)

Initializes a new instance of the XrmAttributeExpression class, setting the AttributeName and AggregateType properties.

XrmAttributeExpression(String)

Initializes a new instance of the XrmAttributeExpression class, setting the AttributeName property.

Properties

AggregateType

Gets or sets the type of aggregation to apply.

Alias

Gets or sets the alias for the column to return.

AttributeName

Gets or sets the logical name of the column data to return.

DateTimeGrouping

Gets or sets a value to specify how DateTime data returned by the query should be grouped.

ExtensionData

Gets or sets the structure that contains extra data.

HasGroupBy

Gets or sets whether the data returned by the column should be grouped.

Applies to