Method | Description | |
---|---|---|
CharacterValidatorAttribute ( bool allowNewLine = false ) : System |
Constructor for the attribute - sets up the error message
|
|
GetClientValidationRules ( ModelMetadata metadata, ControllerContext context ) : IEnumerable |
Gets the validation rules for this attribute
|
public CharacterValidatorAttribute ( bool allowNewLine = false ) : System | ||
allowNewLine | bool | |
return | System |
public GetClientValidationRules ( ModelMetadata metadata, ControllerContext context ) : IEnumerable |
||
metadata | ModelMetadata | |
context | ControllerContext | |
return | IEnumerable |