Skip to main content
.NET Framework 4.6.2+

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, ContextIdentifiers) target, contextIDs Returns a list of all rules for the given object and validation contexts.
GetRules(Object) targetForDelayedCollectRules Returns a list of all rules that belong to the object specified in a parameter.
GetRules(Type, ContextIdentifiers) targetType, contextIDs Returns a list of rules for the given type and validation contexts.