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

Validates that the content has not been set to the specified value
Наследование: Castle.Components.Validator.AbstractValidationAttribute
Показать файл Открыть проект

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

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

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

ValidateNotSameValueAttribute ( Type valueType, object mustNotBeThisValue ) : System

Initializes a new instance of the ValidateNotSameValueAttribute class.

ValidateNotSameValueAttribute ( Type valueType, object mustNotBeThisValue, string errorMessage ) : System

Initializes a new instance of the ValidateSameAsAttribute class.

ValidateNotSameValueAttribute ( object mustNotBeThisValue ) : System

Initializes a new instance of the ValidateSameAsAttribute class.

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

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

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

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

Initializes a new instance of the ValidateNotSameValueAttribute class.
public ValidateNotSameValueAttribute ( Type valueType, object mustNotBeThisValue ) : System
valueType System.Type Type of the value.
mustNotBeThisValue object The must not be this value.
Результат System

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

Initializes a new instance of the ValidateSameAsAttribute class.
public ValidateNotSameValueAttribute ( Type valueType, object mustNotBeThisValue, string errorMessage ) : System
valueType System.Type
mustNotBeThisValue object
errorMessage string
Результат System

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

Initializes a new instance of the ValidateSameAsAttribute class.
public ValidateNotSameValueAttribute ( object mustNotBeThisValue ) : System
mustNotBeThisValue object
Результат System