Interface IValueFormatValidator
Defines a value format validator.
Namespace: Umbraco.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.Object | value | The value to validate. |
System.String | valueType | The value type. |
System.String | format | A format definition. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | 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.