Search Results for

    Show / Hide Table of Contents
    View Source

    Class EditorValidator<T>

    Provides a base class for IEditorValidator implementations.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Editors
    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
    Type Description
    Type

    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>
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • ModelType
    • Methods
      • Validate(T)
      • Validate(Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX