Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockEditorValidator<TValue, TLayout>

    Inheritance
    System.Object
    ComplexEditorValidator
    BlockEditorValidatorBase<TValue, TLayout>
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class BlockEditorValidator<TValue, TLayout> : BlockEditorValidatorBase<TValue, TLayout>, IValueValidator where TValue : BlockValue<TLayout>, new()
        where TLayout : class, IBlockLayoutItem, new()
    Type Parameters
    Name Description
    TValue
    TLayout

    Constructors

    View Source

    BlockEditorValidator(IPropertyValidationService, BlockEditorValues<TValue, TLayout>, IBlockEditorElementTypeCache)

    Declaration
    public BlockEditorValidator(IPropertyValidationService propertyValidationService, BlockEditorValues<TValue, TLayout> blockEditorValues, IBlockEditorElementTypeCache elementTypeCache)
    Parameters
    Type Name Description
    IPropertyValidationService propertyValidationService
    BlockEditorValues<TValue, TLayout> blockEditorValues
    IBlockEditorElementTypeCache elementTypeCache

    Methods

    View Source

    GetElementTypeValidation(Object, PropertyValidationContext)

    Declaration
    protected override IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> GetElementTypeValidation(object value, PropertyValidationContext validationContext)
    Parameters
    Type Name Description
    System.Object value
    PropertyValidationContext validationContext
    Returns
    Type Description
    IEnumerable<ComplexEditorValidator.ElementTypeValidationModel>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockEditorValidator(IPropertyValidationService, BlockEditorValues<TValue, TLayout>, IBlockEditorElementTypeCache)
    • Methods
      • GetElementTypeValidation(Object, PropertyValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX