.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RuleSet.ValidateTarget(IObjectSpace, Object, 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.v20.1.dll


public RuleSetValidationResult ValidateTarget(
    IObjectSpace targetObjectSpace,
    object target,
    ContextIdentifiers contextIDs
Public Function ValidateTarget(
    targetObjectSpace As IObjectSpace,
    target As Object,
    contextIDs As ContextIdentifiers
) As RuleSetValidationResult


Name Type Description
targetObjectSpace IObjectSpace

An IObjectSpace used by a validation target.

target Object

An object for which to check the RuleSet.

contextIDs ContextIdentifiers

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


Type Description

The result of validation.


This method raises the RuleSet.RuleValidated event.

See Also