Occurs after validation of an entire RuleSet is complete.
public event EventHandler<ValidationCompletedEventArgs> ValidationCompleted
Public Event ValidationCompleted As EventHandler(Of ValidationCompletedEventArgs)
The ValidationCompleted event handler receives an argument of the ValidationCompletedEventArgs type. The following properties provide information specific to this event.
|Exception||Specifies a validation exception that will be raised if the validation is unsuccessful.|
|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.