C# Класс Castle.Components.Validator.ValidateNotSameAsAttribute

Validates that the content has a different value from the property informed.
Наследование: Castle.Components.Validator.AbstractValidationAttribute
Показать файл Открыть проект

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

Метод Описание
Build ( ) : IValidator

Constructs and configures an IValidator instance based on the properties set on the attribute instance.

ValidateNotSameAsAttribute ( string propertyToCompare )

Initializes a new instance of the ValidateNotSameAsAttribute class.

ValidateNotSameAsAttribute ( string propertyToCompare, string errorMessage )

Initializes a new instance of the ValidateNotSameAsAttribute class.

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

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

Constructs and configures an IValidator instance based on the properties set on the attribute instance.
public Build ( ) : IValidator
Результат IValidator

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

Initializes a new instance of the ValidateNotSameAsAttribute class.
public ValidateNotSameAsAttribute ( string propertyToCompare )
propertyToCompare string The property to compare.

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

Initializes a new instance of the ValidateNotSameAsAttribute class.
public ValidateNotSameAsAttribute ( string propertyToCompare, string errorMessage )
propertyToCompare string The property to compare.
errorMessage string The error message.