Class NumericValueValidator
Implements
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Validation.StringValues
Assembly: Volo.Abp.Validation.dll
Syntax
[ValueValidator("NUMERIC")]
public class NumericValueValidator : ValueValidatorBase, IValueValidator
Constructors
NumericValueValidator()
Declaration
public NumericValueValidator()
NumericValueValidator(int, int)
Declaration
public NumericValueValidator(int minValue = -2147483648, int maxValue = 2147483647)
Parameters
Type | Name | Description |
---|---|---|
int | minValue | |
int | maxValue |
Properties
MaxValue
Declaration
public int MaxValue { get; set; }
Property Value
Type | Description |
---|---|
int |
MinValue
Declaration
public int MinValue { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
IsValid(object?)
Declaration
public override bool IsValid(object? value)
Parameters
Type | Name | Description |
---|---|---|
object | value |
Returns
Type | Description |
---|---|
bool |
Overrides
IsValidInternal(int)
Declaration
protected virtual bool IsValidInternal(int value)
Parameters
Type | Name | Description |
---|---|---|
int | value |
Returns
Type | Description |
---|---|
bool |