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, PropertyValidationContext)

    Declaration
    protected abstract IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> GetElementTypeValidation(object value, PropertyValidationContext validationContext)
    Parameters
    Type Name Description
    System.Object value
    PropertyValidationContext validationContext
    Returns
    Type Description
    IEnumerable<ComplexEditorValidator.ElementTypeValidationModel>
    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
    Type Name Description
    IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> elements
    PropertyValidationContext validationContext
    Returns
    Type Description
    IEnumerable<NestedValidationResults>
    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>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ComplexEditorValidator(IPropertyValidationService)
    • Methods
      • GetElementTypeValidation(Object, PropertyValidationContext)
      • GetNestedValidationResults(IEnumerable<ComplexEditorValidator.ElementTypeValidationModel>, PropertyValidationContext)
      • Validate(Object, String, Object, PropertyValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX