Back to Devexpress

RuleSet.CustomValidateRule Event

expressappframework-devexpress-dot-persistent-dot-validation-dot-ruleset-2ef6eb88.md

latest2.7 KB
Original Source

RuleSet.CustomValidateRule Event

Occurs when a rule is being validated.

Namespace : DevExpress.Persistent.Validation

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

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
public static event EventHandler<CustomValidateRuleEventArgs> CustomValidateRule
vb
Public Shared Event CustomValidateRule As EventHandler(Of CustomValidateRuleEventArgs)

Event Data

The CustomValidateRule event's data class is CustomValidateRuleEventArgs. The following properties provide information specific to this event:

PropertyDescription
ObjectSpaceAn Object Space of a validation target.
RuleA rule to be checked on a CustomValidateRuleEventArgs.Target.
RuleValidationResultThe result of checking the CustomValidateRuleEventArgs.Rule on the CustomValidateRuleEventArgs.Target.
TargetAn object on which to check the CustomValidateRuleEventArgs.Rule.

Remarks

Handle this event to customize a rule before it is validated or perform a validation manually.

Note

You cannot use this event in a .NET application. Refer to the following section for more information: How to Subscribe to Validation Events

See Also

RuleSet Class

RuleSet Members

DevExpress.Persistent.Validation Namespace