The requested page is not available for the requested platform. You are viewing the content for Default platform.

RuleValueComparisonAttribute.TargetCollectionAggregate Property

Specifies the aggregate function to be checked by the current rule.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v18.2.dll

Declaration

public Aggregate TargetCollectionAggregate { get; set; }
Public Property TargetCollectionAggregate As Aggregate

Property Value

Type Description
Aggregate

A Devexpress.Data.Filtering.Aggregate enumeration value which specifies the aggregate function to be checked by the current rule.

Remarks

When applied to collection properties, the RuleValueComparison can use aggregate functions. When a value is assigned to the TargetCollectionAggregate property, the validation rule checks the specified aggregate function.

RuleValueComparison is not checked if the collection property is empty. Use the RuleRequiredFieldAttribute instead.

See Also