C# Class Castle.Components.Validator.ValidateNotSameValueAttribute

Validates that the content has not been set to the specified value
Inheritance: Castle.Components.Validator.AbstractValidationAttribute
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode Description
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.

Method Details

Build() public méthode

Constructs and configures an IValidator instance based on the properties set on the attribute instance.
public Build ( ) : IValidator
Résultat IValidator

ValidateNotSameValueAttribute() public méthode

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.
Résultat System

ValidateNotSameValueAttribute() public méthode

Initializes a new instance of the ValidateSameAsAttribute class.
public ValidateNotSameValueAttribute ( Type valueType, object mustNotBeThisValue, string errorMessage ) : System
valueType System.Type
mustNotBeThisValue object
errorMessage string
Résultat System

ValidateNotSameValueAttribute() public méthode

Initializes a new instance of the ValidateSameAsAttribute class.
public ValidateNotSameValueAttribute ( object mustNotBeThisValue ) : System
mustNotBeThisValue object
Résultat System