Occurs when determining objects to be validated.
The NeedToValidateObject event's data class is NeedToValidateObjectEventArgs. The following properties provide information specific to this event:
|CurrentObject||Specifies an object which is about to be validated.|
|NeedToValidate||Indicates whether the NeedToValidateObjectEventArgs.CurrentObject must be validated.|
Handle this event to exclude particular objects from validation. This event is triggered for each object that is about to be validated. To exclude particular objects from validation, check that the object specified by the CurrentObject property fits your criteria and set the NeedToValidate property to false.