C# Класс System.ComponentModel.DataAnnotations.EmailAttribute

Наследование: System.ComponentModel.DataAnnotations.BaseRegValidateAttribute
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
EmailAttribute ( ) : System

Creates a new instance of EmailAttribute

EmailAttribute ( string errorMessage ) : System

Creates a new instance of EmailAttribute

FormatErrorMessage ( string name ) : string

Applies formatting to an error message, based on the data field where the error occurred.

IsValid ( object value ) : bool

Determines whether the specified value of the object is valid.

Описание методов

EmailAttribute() публичный Метод

Creates a new instance of EmailAttribute
public EmailAttribute ( ) : System
Результат System

EmailAttribute() публичный Метод

Creates a new instance of EmailAttribute
public EmailAttribute ( string errorMessage ) : System
errorMessage string
Результат System

FormatErrorMessage() публичный Метод

Applies formatting to an error message, based on the data field where the error occurred.
public FormatErrorMessage ( string name ) : string
name string The name to include in the formatted message.
Результат string

IsValid() публичный Метод

Determines whether the specified value of the object is valid.
public IsValid ( object value ) : bool
value object The value of the object to validate.
Результат bool