Search Results for

    Show / Hide Table of Contents
    View Source

    Class EmailValidator

    A validator that validates an email address.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.PropertyEditors.Validators
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class EmailValidator : IValueValidator

    Constructors

    View Source

    EmailValidator()

    Initializes a new instance of the EmailValidator class.

    Declaration
    public EmailValidator()
    View Source

    EmailValidator(ILocalizedTextService)

    Initializes a new instance of the EmailValidator class.

    Declaration
    public EmailValidator(ILocalizedTextService localizedTextService)
    Parameters
    Type Name Description
    ILocalizedTextService localizedTextService

    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
    System.Object value

    The value to validate.

    System.String valueType

    The value type.

    System.Object dataTypeConfiguration

    A datatype configuration.

    PropertyValidationContext validationContext

    The context in which the value is being validated.

    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
    • Constructors
      • EmailValidator()
      • EmailValidator(ILocalizedTextService)
    • Methods
      • Validate(Object, String, Object, PropertyValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX