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