View Source
  Class EditorValidator<T>
  
  
  
  
    Inheritance
      System.Object
      
   
  
  Assembly: Umbraco.Core.dll
  Syntax
  
    public abstract class EditorValidator<T> : IEditorValidator, IDiscoverable
   
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | T | 
        The validated object type. 
 | 
      
    
  
  Properties
  
  
    View Source
  
  ModelType
  
  
  Declaration
  
    public Type ModelType { get; }
   
  Property Value
  
  Methods
  
  
    View Source
  
  Validate(T)
  
  
  Declaration
  
    protected abstract IEnumerable<ValidationResult> Validate(T model)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | T | 
        model | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | 
         | 
      
    
  
  
    View Source
  
  Validate(Object)
  
  
  Declaration
  
    public IEnumerable<ValidationResult> Validate(object model)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        model | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | 
         |