Back to Devexpress

IRuleSet.Validate Method

expressappframework-devexpress-dot-persistent-dot-validation-dot-iruleset-dot-validate.md

latest1.1 KB
Original Source

IRuleSet.Validate Method

NameParametersDescription
Validate(IObjectSpace, Object, ContextIdentifiers, ValidationFailedDelegate)targetObjectSpace, target, contextIDs, validationFailedDelegateValidates an object against the IRuleSet‘s rules with the given validation contexts. If validation fails, the ValidationException is thrown and the method passed as the validationFailedDelegate parameter is called.
Validate(IObjectSpace, Object, ContextIdentifiers)targetObjectSpace, target, contextIDsValidates an object against the IRuleSet‘s rules with the given validation contexts. Throws a ValidationException if the validation fails.