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

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

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

Метод Описание
EqualToAttribute ( string otherProperty ) : System

Creates a new instance of EqualToAttribute

EqualToAttribute ( string errorMessage, string otherProperty ) : System

Creates a new instance of EqualToAttribute

FormatErrorMessage ( string name ) : string

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

Защищенные методы

Метод Описание
IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

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

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

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

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

Creates a new instance of EqualToAttribute
public EqualToAttribute ( string errorMessage, string otherProperty ) : System
errorMessage string
otherProperty 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() защищенный Метод

protected IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
validationContext System.ComponentModel.DataAnnotations.ValidationContext
Результат System.ComponentModel.DataAnnotations.ValidationResult