• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IValueValidator

    Defines a value validator.

    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IValueValidator

    Methods

    View Source

    Validate(Object, String, Object)

    Validates a value.

    Declaration
    IEnumerable<ValidationResult> Validate(object value, string valueType, object dataTypeConfiguration)
    Parameters
    Type Name Description
    System.Object value

    The value to validate.

    System.String valueType

    The value type.

    System.Object dataTypeConfiguration

    A datatype configuration.

    Returns
    Type Description
    IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>

    Validation results.

    Remarks

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

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Validate(Object, String, Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX