Skip to main content
.NET 8.0+

RuleSet.Validate Method

Name Parameters Description
Validate(IObjectSpace, Object, ContextIdentifiers, ValidationFailedDelegate) targetObjectSpace, target, contextIDs, validationFailedDelegate Validates an object against the RuleSet‘s rules with the given validation contexts, returns a result and throws a ValidationException if the validation fails.
Validate(IObjectSpace, Object, ContextIdentifiers) targetObjectSpace, target, contextIDs Validates an object against RuleSet‘s rules with the given validation contexts, returns a result and throws a ValidationException if the validation fails.