View Source
  Class ComplexEditorValidator
  
  Used to validate complex editors that contain nested editors
    Inheritance
      System.Object
      
   
  
  Assembly: Umbraco.Infrastructure.dll
  Syntax
  
    public abstract class ComplexEditorValidator : IValueValidator
   
  Constructors
  
  
    View Source
  
  ComplexEditorValidator(IPropertyValidationService)
  
  
  Declaration
  
    public ComplexEditorValidator(IPropertyValidationService propertyValidationService)
   
  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 | 
    
    
      
        | IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |  |