Class RangeNumberPropertyValidator
Validates that all integer properties adhere to all configured range validation settings.
Inheritance
System.Object
RangeNumberPropertyValidator
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class RangeNumberPropertyValidator : PropertyValidatorBase<RangeNumberValidationSettings>, IValidate<IContentData>, IValidate
Constructors
RangeNumberPropertyValidator(LocalizationService, IPropertyDefinitionRepository, IPropertyValidationSettingsRepository)
Declaration
public RangeNumberPropertyValidator(LocalizationService localizationService, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyValidationSettingsRepository validationSettingsRepository)
Parameters
Methods
CanHandle(PropertyData)
Declaration
protected override bool CanHandle(PropertyData property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
EPiServer.Validation.Internal.PropertyValidatorBase<EPiServer.Validation.RangeNumberValidationSettings>.CanHandle(EPiServer.Core.PropertyData)
ErrorMessage(PropertyDefinition, PropertyData, RangeNumberValidationSettings)
Declaration
protected override string ErrorMessage(PropertyDefinition propertyDefinition, PropertyData property, RangeNumberValidationSettings settings)
Parameters
Returns
Type |
Description |
System.String |
|
Overrides
EPiServer.Validation.Internal.PropertyValidatorBase<EPiServer.Validation.RangeNumberValidationSettings>.ErrorMessage(EPiServer.DataAbstraction.PropertyDefinition, EPiServer.Core.PropertyData, EPiServer.Validation.RangeNumberValidationSettings)
IsValid(PropertyData, RangeNumberValidationSettings)
Declaration
protected override bool IsValid(PropertyData property, RangeNumberValidationSettings settings)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
EPiServer.Validation.Internal.PropertyValidatorBase<EPiServer.Validation.RangeNumberValidationSettings>.IsValid(EPiServer.Core.PropertyData, EPiServer.Validation.RangeNumberValidationSettings)
Implements
Extension Methods