Class DelimitedValueValidator
A validator that validates a delimited set of values against a common regex
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PropertyEditors.Validators
Assembly: Umbraco.Core.dll
Syntax
public sealed class DelimitedValueValidator : IManifestValueValidator, IValueValidator
Properties
View SourceConfiguration
Gets or sets the configuration, when parsed as IManifest
Declaration
public DelimitedValueValidatorConfig Configuration { get; set; }
Property Value
Type | Description |
---|---|
Delimited |
ValidationName
Gets the name of the validator.
Declaration
public string ValidationName { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
View SourceValidate(Object, String, Object)
Validates a value.
Declaration
public IEnumerable<ValidationResult> Validate(object value, string valueType, object dataTypeConfiguration)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The value to validate. |
System. |
valueType | The value type. |
System. |
dataTypeConfiguration | A datatype configuration. |
Returns
Type | Description |
---|---|
IEnumerable<System. |
Validation results. |
Remarks
The value can be a string, a Json structure (JObject, JArray...)... corresponding to what was posted by an editor.