Class StringValueValidator
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("STRING")]
public class StringValueValidator : ValueValidatorBase, IValueValidator
Constructors
StringValueValidator()
Declaration
public StringValueValidator()
StringValueValidator(int, int, string?, bool)
Declaration
public StringValueValidator(int minLength = 0, int maxLength = 0, string? regularExpression = null, bool allowNull = false)
Parameters
Type | Name | Description |
---|---|---|
int | minLength | |
int | maxLength | |
string | regularExpression | |
bool | allowNull |
Properties
AllowNull
Declaration
public bool AllowNull { get; set; }
Property Value
Type | Description |
---|---|
bool |
MaxLength
Declaration
public int MaxLength { get; set; }
Property Value
Type | Description |
---|---|
int |
MinLength
Declaration
public int MinLength { get; set; }
Property Value
Type | Description |
---|---|
int |
RegularExpression
Declaration
public string? RegularExpression { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
IsValid(object?)
Declaration
public override bool IsValid(object? value)
Parameters
Type | Name | Description |
---|---|---|
object | value |
Returns
Type | Description |
---|---|
bool |