Occurs after validation of an entire RuleSet is complete.
The ValidationCompleted event's data class is ValidationCompletedEventArgs. The following properties provide information specific to this event:
|Exception||Specifies a validation exception that will be raised if the validation is unsuccessful.|
|Handled||Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs.|
|ObjectSpace||Returns an IObjectSpace used by the RuleSet.|
|Result||Returns the result of the entire RuleSet validation.|
|Successful||Indicates if the validation was successful.|
Handle this event to change or remove the ValidationCompletedEventArgs.Exception.
If the validation was performed by the RuleSet.ValidateTarget or RuleSet.ValidateAllTargets, the ValidationCompleted event is not raised. This peculiarity is especially useful when you need to perform a quick validation and get the result without utilizing the global RuleSet.ValidationCompleted event handler.