Class RangeDatePropertyValidator
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates that all integer properties adhere to all configured range validation settings.
Inheritance
System.Object
RangeDatePropertyValidator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Validation.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton, IncludeServiceAccessor = false)]
public class RangeDatePropertyValidator : PropertyValidatorBase<RangeDateValidationSettings>, IValidate<IContentData>, IValidate
Constructors
RangeDatePropertyValidator(LocalizationService, IPropertyDefinitionRepository, IPropertyValidationSettingsRepository)
Declaration
public RangeDatePropertyValidator(LocalizationService localizationService, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyValidationSettingsRepository validationSettingsRepository)
Parameters
Type | Name | Description |
---|---|---|
LocalizationService | localizationService | |
IPropertyDefinitionRepository | propertyDefinitionRepository | |
IPropertyValidationSettingsRepository | validationSettingsRepository |
Methods
CanHandle(PropertyData)
Declaration
protected override bool CanHandle(PropertyData property)
Parameters
Type | Name | Description |
---|---|---|
PropertyData | property |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
EPiServer.Validation.Internal.PropertyValidatorBase<EPiServer.Validation.RangeDateValidationSettings>.CanHandle(EPiServer.Core.PropertyData)
ErrorMessage(PropertyDefinition, PropertyData, RangeDateValidationSettings)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
protected override string ErrorMessage(PropertyDefinition propertyDefinition, PropertyData property, RangeDateValidationSettings settings)
Parameters
Type | Name | Description |
---|---|---|
PropertyDefinition | propertyDefinition | |
PropertyData | property | |
RangeDateValidationSettings | settings |
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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
protected override bool IsValid(PropertyData property, RangeDateValidationSettings settings)
Parameters
Type | Name | Description |
---|---|---|
PropertyData | property | |
RangeDateValidationSettings | settings |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
EPiServer.Validation.Internal.PropertyValidatorBase<EPiServer.Validation.RangeDateValidationSettings>.IsValid(EPiServer.Core.PropertyData, EPiServer.Validation.RangeDateValidationSettings)