Table of Contents

Class EmailInputComponent

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Represents an email input component.

public class EmailInputComponent : FormComponent<EmailInputProperties, string>
Inheritance
object
EmailInputComponent
Inherited Members
Extension Methods

Fields

IDENTIFIER

Represents the EmailInputComponent identifier.

public const string IDENTIFIER = "Kentico.EmailInput"

Field Value

string

Properties

Email

Represents the input value in the resulting HTML.

public string Email { get; set; }

Property Value

string

Methods

GetValue()

Gets the Email property.

public override string GetValue()

Returns

string

SetValue(string)

Sets the Email.

public override void SetValue(string value)

Parameters

value string

Validate(ValidationContext)

Determines whether given input is a valid email address.

public override IEnumerable<ValidationResult> Validate(ValidationContext validationContext)

Parameters

validationContext ValidationContext

The validation context.

Returns

IEnumerable<ValidationResult>

A collection that holds failed-validation information.