Search Results for

    Show / Hide Table of Contents
    View Source

    Class ComplexEditorValidator

    Used to validate complex editors that contain nested editors

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public abstract class ComplexEditorValidator : IValueValidator

    Constructors

    View Source

    ComplexEditorValidator(IPropertyValidationService)

    Declaration
    public ComplexEditorValidator(IPropertyValidationService propertyValidationService)
    Parameters
    Type Name Description
    IPropertyValidationService propertyValidationService

    Methods

    View Source

    GetElementTypeValidation(Object)

    Declaration
    protected abstract IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> GetElementTypeValidation(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    IEnumerable<ComplexEditorValidator.ElementTypeValidationModel>
    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
    Type Name Description
    IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> elements
    Returns
    Type Description
    IEnumerable<ComplexEditorElementTypeValidationResult>
    View Source

    Validate(Object, String, Object)

    Return a single ComplexEditorValidationResult for all sub nested validation results in the complex editor

    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>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ComplexEditorValidator(IPropertyValidationService)
    • Methods
      • GetElementTypeValidation(Object)
      • GetNestedValidationResults(IEnumerable<ComplexEditorValidator.ElementTypeValidationModel>)
      • Validate(Object, String, Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX