IRuleSet.ValidateTarget(IObjectSpace, Object, ReadOnlyCollection<IRule>, ContextIdentifiers) Method
In This Article
Silently validates an object (without raising the RuleSet.ValidationCompleted event and throwing the ValidationException) and returns a result.
Namespace: DevExpress.Persistent.Validation
Assembly: DevExpress.Persistent.Base.v24.2.dll
NuGet Package: DevExpress.Persistent.Base
#Declaration
RuleSetValidationResult ValidateTarget(
IObjectSpace targetObjectSpace,
object target,
ReadOnlyCollection<IRule> rulesList,
ContextIdentifiers contextIDs
)
#Parameters
Name | Type | Description |
---|---|---|
target |
IObject |
An IObject |
target | Object | An object for which to check the Rule |
rules |
Read |
A collection of persistent validation rules to use. |
context |
Context |
The set of validation contexts. Default contexts are stored in the Default |
#Returns
Type | Description |
---|---|
DevExpress. |
The result of validation. |
See Also