Interface IValueFormatValidator
Defines a value format validator.
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public interface IValueFormatValidator
Methods
View SourceValidateFormat(Object, String, String)
Validates a value.
Declaration
IEnumerable<ValidationResult> ValidateFormat(object value, string valueType, string format)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The value to validate. |
System. |
valueType | The value type. |
System. |
format | A format definition. |
Returns
Type | Description |
---|---|
IEnumerable<System. |
Validation results. |
Remarks
The format
is expected to be a valid regular expression.
This is used to validate values against the property type validation regular expression.