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, PropertyValidationContext)
  
  
  Declaration
  
    protected abstract IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> GetElementTypeValidation(object value, PropertyValidationContext validationContext)
   
  Parameters
  
  Returns
  
  
    View Source
  
  GetNestedValidationResults(IEnumerable<ComplexEditorValidator.ElementTypeValidationModel>, PropertyValidationContext)
  Return a nested validation result per row (Element Type)
 
  
  Declaration
  
    protected IEnumerable<NestedValidationResults> GetNestedValidationResults(IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> elements, PropertyValidationContext validationContext)
   
  Parameters
  
  Returns
  
  
    View Source
  
  Validate(Object, String, Object, PropertyValidationContext)
  
  
  Declaration
  
    public IEnumerable<ValidationResult> Validate(object value, string valueType, object dataTypeConfiguration, PropertyValidationContext validationContext)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        value | 
         | 
      
      
        | System.String | 
        valueType | 
         | 
      
      
        | System.Object | 
        dataTypeConfiguration | 
         | 
      
      
        | PropertyValidationContext | 
        validationContext | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | 
         |