Search Results for

    Show / Hide Table of Contents
    View Source

    Class ValueListUniqueValueValidator

    Represents a validator which ensures that all values in the list are unique.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class ValueListUniqueValueValidator : IValueValidator

    Constructors

    View Source

    ValueListUniqueValueValidator(IConfigurationEditorJsonSerializer)

    Declaration
    public ValueListUniqueValueValidator(IConfigurationEditorJsonSerializer configurationEditorJsonSerializer)
    Parameters
    Type Name Description
    IConfigurationEditorJsonSerializer configurationEditorJsonSerializer

    Methods

    View Source

    Validate(object?, string?, object?, PropertyValidationContext)

    Validates a value.

    Declaration
    public IEnumerable<ValidationResult> Validate(object? value, string? valueType, object? dataTypeConfiguration, PropertyValidationContext validationContext)
    Parameters
    Type Name Description
    object value

    The value to validate.

    string valueType

    The value type.

    object dataTypeConfiguration

    A datatype configuration.

    PropertyValidationContext validationContext

    The context in which the value is being validated.

    Returns
    Type Description
    IEnumerable<ValidationResult>

    Validation results.

    Remarks

    The value can be a string, a Json structure (JObject, JArray...)... corresponding to what was posted by an editor.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX