C# 클래스 JustPressPlay.CharacterValidatorAttribute

Validates text line input based on a particular pattern
상속: System.ComponentModel.DataAnnotations.RegularExpressionAttribute, IClientValidatable
파일 보기 프로젝트 열기: RIT-MAGIC/JustPressPlay

공개 메소드들

메소드 설명
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

메소드 상세

CharacterValidatorAttribute() 공개 메소드

Constructor for the attribute - sets up the error message
public CharacterValidatorAttribute ( bool allowNewLine = false ) : System
allowNewLine bool
리턴 System

GetClientValidationRules() 공개 메소드

Gets the validation rules for this attribute
public GetClientValidationRules ( ModelMetadata metadata, ControllerContext context ) : IEnumerable
metadata ModelMetadata
context ControllerContext
리턴 IEnumerable