C# Class Castle.Components.Validator.ValidateNotSameAsAttribute

Validates that the content has a different value from the property informed.
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.

ValidateNotSameAsAttribute ( string propertyToCompare )

Initializes a new instance of the ValidateNotSameAsAttribute class.

ValidateNotSameAsAttribute ( string propertyToCompare, string errorMessage )

Initializes a new instance of the ValidateNotSameAsAttribute 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

ValidateNotSameAsAttribute() public method

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

ValidateNotSameAsAttribute() public method

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.