Property Validation Modes

Property Validation can be used in two ways. Configure property validation for your prefered validation method by setting the ValidationAspects.ValidationSettings.StateValidateProperties and InterceptValidateProperties boolean properties. By default, ValidationAspects performs both State and Interception Validation.
  • Interception Validation: When this mode is set, property setters are intercepted and the setting value is validated. Failed validation will result in a ValidationException being thrown.
  • StateValidation: When this mode is set, property validators will be invoked when object validation is invoked. Failed validation exceptions will be added to the ValidationResult.

Last edited Feb 3, 2009 at 5:05 PM by mikesaunders, version 3


No comments yet.