ExactLengthValidator
Assembly: ServiceStack.dll
View Source
Declaration
public class ExactLengthValidator : LengthValidator, ILengthValidator, IPropertyValidator
Inherited Properties
Max
View Source
Declaration
public int Max { get; }
MaxFunc
View Source
Declaration
public Func<object, int> MaxFunc { get; set; }
Min
View Source
Declaration
public int Min { get; }
MinFunc
View Source
Declaration
public Func<object, int> MinFunc { get; set; }
Methods
GetDefaultMessageTemplate()
View Source
Declaration
protected override string GetDefaultMessageTemplate()
Returns
System.String
Inherited Methods
GetDefaultMessageTemplate()
View Source
Declaration
protected override string GetDefaultMessageTemplate()
Returns
System.String
IsValid(PropertyValidatorContext)
View Source
Declaration
protected override bool IsValid(PropertyValidatorContext context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |