Метод | Описание | |
---|---|---|
ExceptionAction ( ) : System |
Initializes a new instance of the ExceptionAction class.
|
|
ExceptionAction ( IExpression throwsExpression ) : System |
Initializes a new instance of the ExceptionAction class with an expression that defines the exception to throw.
|
|
ExceptionAction ( string exceptionExpression ) : System |
Initializes a new instance of the ExceptionAction class.
|
Метод | Описание | |
---|---|---|
OnInvalid ( object validationContext, object>.IDictionary |
Called when associated validator is invalid.
|
public ExceptionAction ( IExpression throwsExpression ) : System | ||
throwsExpression | IExpression | |
Результат | System |
public ExceptionAction ( string exceptionExpression ) : System | ||
exceptionExpression | string | Expression that defines the exception to throw when the validator is not valid. |
Результат | System |
protected OnInvalid ( object validationContext, object>.IDictionary |
||
validationContext | object | Validation context. |
contextParams | object>.IDictionary | Additional context parameters. |
errors | IValidationErrors | Validation errors container. |
Результат | void |