RuleSet.NeedToValidateRule(IObjectSpace, IRule, Object, String, out String) Method
Checks if the rule is marked to be validated.
Namespace: DevExpress.Persistent.Validation
Assembly: DevExpress.Persistent.Base.v25.1.dll
NuGet Package: DevExpress.Persistent.Base
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| targetObjectSpace | IObjectSpace | An IObjectSpace used by a validation target. |
| rule | IRule | The IRule object whose validation shall be checked. |
| target | Object | A rule’s target object. |
| contextId | String | A CustomNeedToValidateRuleEventArgs.ContextId which is a validation context of the rule. |
| reason | String | Returns a reason to validate the rule or not. |
Returns
| Type | Description |
|---|---|
| Boolean | true, if the rule will be validated; otherwise, false. |
See Also