Class RegularExpressionPropertyValidator
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates that properties matches the required regular expresssion pattern.
Inheritance
System.Object
RegularExpressionPropertyValidator
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()
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton, IncludeServiceAccessor = false)]
public class RegularExpressionPropertyValidator : PropertyValidatorBase<RegularExpressionValidationSettings>, IValidate<IContentData>, IValidate
Constructors
RegularExpressionPropertyValidator(LocalizationService, IPropertyDefinitionRepository, IPropertyValidationSettingsRepository)
Declaration
public RegularExpressionPropertyValidator(LocalizationService localizationService, IPropertyDefinitionRepository propertyDefinitionRepository, IPropertyValidationSettingsRepository validationSettingsRepository)
Parameters
Methods
CanHandle(PropertyData)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
protected override bool CanHandle(PropertyData property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
EPiServer.Validation.Internal.PropertyValidatorBase<EPiServer.Validation.RegularExpressionValidationSettings>.CanHandle(EPiServer.Core.PropertyData)
ErrorMessage(PropertyDefinition, PropertyData, RegularExpressionValidationSettings)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
protected override string ErrorMessage(PropertyDefinition propertyDefinition, PropertyData property, RegularExpressionValidationSettings settings)
Parameters
Returns
Type |
Description |
System.String |
|
Overrides
EPiServer.Validation.Internal.PropertyValidatorBase<EPiServer.Validation.RegularExpressionValidationSettings>.ErrorMessage(EPiServer.DataAbstraction.PropertyDefinition, EPiServer.Core.PropertyData, EPiServer.Validation.RegularExpressionValidationSettings)
IsValid(PropertyData, RegularExpressionValidationSettings)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
protected override bool IsValid(PropertyData property, RegularExpressionValidationSettings settings)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
EPiServer.Validation.Internal.PropertyValidatorBase<EPiServer.Validation.RegularExpressionValidationSettings>.IsValid(EPiServer.Core.PropertyData, EPiServer.Validation.RegularExpressionValidationSettings)
Implements
Extension Methods