Class StringValueValidator
Inheritance
System.Object
StringValueValidator
Assembly: Volo.Abp.Validation.dll
Syntax
public class StringValueValidator : ValueValidatorBase, IValueValidator
Constructors
StringValueValidator()
Declaration
public StringValueValidator()
StringValueValidator(Int32, Int32, String, Boolean)
Declaration
public StringValueValidator(int minLength = 0, int maxLength = 0, string regularExpression = null, bool allowNull = false)
Parameters
Type |
Name |
Description |
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
System.String |
regularExpression |
|
System.Boolean |
allowNull |
|
Properties
AllowNull
Declaration
public bool AllowNull { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
MaxLength
Declaration
public int MaxLength { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
MinLength
Declaration
public int MinLength { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
RegularExpression
Declaration
public string RegularExpression { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
IsValid(Object)
Declaration
public override bool IsValid(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements
Extension Methods