ValidateConfirmationAttribute API Document
This it used when you need to accept two identical inputs from the user, for instnace, a password and its confirmation.
Constructors
ValidateConfirmationAttribute(String confirmationFieldOrProperty)
Initializes a new instance of the Castle.ActiveRecord.ValidateConfirmationAttribute class.
| Parameter | Description |
|---|---|
| confirmationFieldOrProperty | The confirmation field or property that should be verified against this one. |
ValidateConfirmationAttribute(String confirmationFieldOrProperty, String errorMessage)
Initializes a new instance of the Castle.ActiveRecord.ValidateConfirmationAttribute class.
| Parameter | Description |
|---|---|
| confirmationFieldOrProperty | The confirmation field or property that should be verified against this one. |
| errorMessage | The error message to display if this property and the configuration property are not the same. |
Properties
| Name | Type | Description |
|---|---|---|
| Validator | IValidator | Gets the validator for this attribute. Each attribute that inherits from this class will have its own validtor. |