Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IValueFormatValidator

    Defines a value format validator.

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

    Methods

    View Source

    ValidateFormat(Object, String, String)

    Validates a value.

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

    The value to validate.

    System.String valueType

    The value type.

    System.String format

    A format definition.

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

    Validation results.

    Remarks

    The format is expected to be a valid regular expression.

    This is used to validate values against the property type validation regular expression.

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