Skip to main content
All docs
V24.1
.NET Framework 4.5.2+

IRuleSet.ValidateTarget(IObjectSpace, Object, ReadOnlyCollection<IRule>, ContextIdentifiers) Method

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.1.dll

Declaration

RuleSetValidationResult ValidateTarget(
    IObjectSpace targetObjectSpace,
    object target,
    ReadOnlyCollection<IRule> rulesList,
    ContextIdentifiers contextIDs
)

Parameters

Name Type Description
targetObjectSpace IObjectSpace

An IObjectSpace used by a validation target.

target Object

An object for which to check the RuleSet.

rulesList ReadOnlyCollection<IRule>

A collection of persistent validation rules to use.

contextIDs ContextIdentifiers

The set of validation contexts. Default contexts are stored in the DefaultContexts enumeration.

Returns

Type Description
DevExpress.Persistent.Validation.RuleSetValidationResult

The result of validation.

See Also