RuleSet.IsEmptyValue(Object, String, Object) Method
In This Article
Determines whether or not the validation rule’s target property value is considered empty.
Namespace: DevExpress.Persistent.Validation
Assembly: DevExpress.Persistent.Base.v24.2.dll
NuGet Package: DevExpress.Persistent.Base
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
target |
Object | An object which is the validation rule’s target object. |
property |
String | A string which is the name of the validation rule’s target property. |
property |
Object | An object which is the validation rule’s target property value. |
#Returns
Type | Description |
---|---|
Boolean | true, if the value is considered empty; otherwise - false. |
#Remarks
By default, empty values are:
- a null value;
- a zero length string;
- a DateTime value equal to DateTime.MinValue;
- an IEmptyCheckable value with the IEmptyCheckable.IsEmpty property set to true.
Handle the RuleSet.CustomIsEmptyValue event to customize this method behavior.
See Also