RuleSet.NeedToValidateRule(IObjectSpace, IRule, Object, String, out String) Method
In This Article
Checks if the rule is marked to be validated.
Namespace: DevExpress.Persistent.Validation
Assembly: DevExpress.Persistent.Base.v24.2.dll
NuGet Package: DevExpress.Persistent.Base
#Declaration
public static bool NeedToValidateRule(
IObjectSpace targetObjectSpace,
IRule rule,
object target,
string contextId,
out string reason
)
#Parameters
Name | Type | Description |
---|---|---|
target |
IObject |
An IObject |
rule | IRule | The IRule object whose validation shall be checked. |
target | Object | A rule’s target object. |
context |
String | A Custom |
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