IRuleSet.GetRules(Type, ContextIdentifiers) Method
In This Article
Returns a list of rules for the given type and validation contexts.
Namespace: DevExpress.Persistent.Validation
Assembly: DevExpress.Persistent.Base.v24.2.dll
NuGet Package: DevExpress.Persistent.Base
#Declaration
ReadOnlyCollection<IRule> GetRules(
Type targetType,
ContextIdentifiers contextIDs
)
#Parameters
Name | Type | Description |
---|---|---|
target |
Type | A type of object for which rules will be collected. |
context |
Context |
The Context |
#Returns
Type | Description |
---|---|
Read |
The list of rules that satisfy both conditions given in parameters. |
See Also