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 |
|---|---|---|
| object | value | The value to validate. |
| string | valueType | The value type. |
| string | format | A format definition. |
Returns
| Type | Description |
|---|---|
| IEnumerable<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.