RuleSet.ValidateRule(IObjectSpace, IRule, Object) Method
In This Article
Checks a rule on a target and returns a result.
Namespace: DevExpress.Persistent.Validation
Assembly: DevExpress.Persistent.Base.v24.2.dll
NuGet Package: DevExpress.Persistent.Base
#Declaration
public static RuleValidationResult ValidateRule(
IObjectSpace targetObjectSpace,
IRule rule,
object target
)
#Parameters
Name | Type | Description |
---|---|---|
target |
IObject |
An IObject |
rule | IRule | The IRule object that represents a rule to check. |
target | Object | An object to validate. |
#Returns
Type | Description |
---|---|
Rule |
The validation result. |
See Also