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

    RuleSet.IsEmptyValue(Object, String, Object, IServiceProvider) Method

    Determines whether or not the validation rule’s target property value is considered empty.

    Namespace: DevExpress.Persistent.Validation

    Assembly: DevExpress.Persistent.Base.v25.1.dll

    #Declaration

    public static bool IsEmptyValue(
        object targetObject,
        string propertyName,
        object propertyValue,
        IServiceProvider serviceProvider
    )

    #Parameters

    Name Type Description
    targetObject Object

    An object which is the validation rule’s target object.

    propertyName String

    A string which is the name of the validation rule’s target property.

    propertyValue Object

    An object which is the validation rule’s target property value.

    serviceProvider IServiceProvider

    An object that implements the IServiceProvider interface.

    #Returns

    Type Description
    Boolean

    true, if the value is considered empty; otherwise - false.

    #Remarks

    By default, empty values are:

    Handle the RuleSet.CustomIsEmptyValue event to customize this method behavior.

    See Also