Skip to main content
All docs
V25.1
  • .NET 8.0+

    DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

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

    #Declaration

    RuleSetValidationResult ValidateTarget(
        IObjectSpace targetObjectSpace,
        object target,
        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.

    contextIDs ContextIdentifiers

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

    #Returns

    Type Description
    DevExpress.Persistent.Validation.RuleSetValidationResult

    The validation result. If all rules are satisfied, the RuleSetValidationResult.IsValid property returns true; otherwise, it returns false

    See Also