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