Метод | Описание | |
---|---|---|
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.
|
public ValidateNotSameAsAttribute ( string propertyToCompare ) | ||
propertyToCompare | string | The property to compare. |
public ValidateNotSameAsAttribute ( string propertyToCompare, string errorMessage ) | ||
propertyToCompare | string | The property to compare. |
errorMessage | string | The error message. |