C# Class JustPressPlay.CharacterValidatorAttribute

Validates text line input based on a particular pattern
Inheritance: System.ComponentModel.DataAnnotations.RegularExpressionAttribute, IClientValidatable
Afficher le fichier Open project: RIT-MAGIC/JustPressPlay

Méthodes publiques

Méthode 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

Method Details

CharacterValidatorAttribute() public méthode

Constructor for the attribute - sets up the error message
public CharacterValidatorAttribute ( bool allowNewLine = false ) : System
allowNewLine bool
Résultat System

GetClientValidationRules() public méthode

Gets the validation rules for this attribute
public GetClientValidationRules ( ModelMetadata metadata, ControllerContext context ) : IEnumerable
metadata ModelMetadata
context ControllerContext
Résultat IEnumerable