View Source
Class ComplexEditorValidator
Used to validate complex editors that contain nested editors
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public abstract class ComplexEditorValidator : IValueValidator
Constructors
View Source
ComplexEditorValidator(PropertyEditorCollection, IDataTypeService, ILocalizedTextService)
Declaration
public ComplexEditorValidator(PropertyEditorCollection propertyEditors, IDataTypeService dataTypeService, ILocalizedTextService textService)
Parameters
Methods
View Source
GetElementTypeValidation(Object)
Declaration
protected abstract IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> GetElementTypeValidation(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
View Source
GetNestedValidationResults(IEnumerable<ComplexEditorValidator.ElementTypeValidationModel>)
Return a nested validation result per row (Element Type)
Declaration
protected IEnumerable<ComplexEditorElementTypeValidationResult> GetNestedValidationResults(IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> elements)
Parameters
Returns
View Source
Validate(Object, String, Object)
Declaration
public IEnumerable<ValidationResult> Validate(object value, string valueType, object dataTypeConfiguration)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
System.String |
valueType |
|
System.Object |
dataTypeConfiguration |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |
|