.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RuleSet.Validate Method

Name Parameters Description
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.
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.