C# Class Castle.Components.Validator.ValidateNotSameValueAttribute

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

Public Methods

Method 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 method

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

ValidateNotSameValueAttribute() public method

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.
return System

ValidateNotSameValueAttribute() public method

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

ValidateNotSameValueAttribute() public method

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