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

RuleSet.GetRules Method

Name Parameters Description
GetRules() none Returns a list of all rules registered in the RuleSet.
GetRules(IEnumerable<Type>) targetTypesForDelayedCollectRules Returns a list of rules that belongs to the current RuleSet.
GetRules(IEnumerable) targetsForDelayedCollectRules Returns a list of all rules that belong to the objects listed in a parameter.
GetRules(Object) targetForDelayedCollectRules Returns a list of all rules that belong to the object specified in a parameter.
GetRules(Object, ContextIdentifiers) target, contextIDs Returns a list of all rules for the given object and validation contexts.
GetRules(Type, ContextIdentifiers) targetType, contextIDs Returns a list of rules for the given type and validation contexts.