C# 클래스 xVal.Html.ValidationInfo

Represents a validation configuration that can be rendered to the client
파일 보기 프로젝트 열기: fellowshiptech/ft-iserve 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Formatter IValidationConfigFormatter

공개 메소드들

메소드 설명
AddRule ( string propertyName, Rule rule ) : ValidationInfo
SuppressScriptTags ( ) : ValidationInfo
ToString ( ) : string
ValidationInfo ( RuleSet rules ) : System

Constructs a ValidationInfo that simply format and render the rules

ValidationInfo ( RuleSet rules, string attachToElementPrefix ) : System

Constructs a ValidationInfo that will render JavaScript code that attaches the rules to DOM elements

비공개 메소드들

메소드 설명
MergeAddedRulesIntoRuleSet ( ) : void
WrapInScriptTag ( string statement ) : string

메소드 상세

AddRule() 공개 메소드

public AddRule ( string propertyName, Rule rule ) : ValidationInfo
propertyName string
rule xVal.Rules.Rule
리턴 ValidationInfo

SuppressScriptTags() 공개 메소드

public SuppressScriptTags ( ) : ValidationInfo
리턴 ValidationInfo

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ValidationInfo() 공개 메소드

Constructs a ValidationInfo that simply format and render the rules
public ValidationInfo ( RuleSet rules ) : System
rules xVal.RuleProviders.RuleSet
리턴 System

ValidationInfo() 공개 메소드

Constructs a ValidationInfo that will render JavaScript code that attaches the rules to DOM elements
public ValidationInfo ( RuleSet rules, string attachToElementPrefix ) : System
rules xVal.RuleProviders.RuleSet
attachToElementPrefix string
리턴 System

프로퍼티 상세

Formatter 공개적으로 정적으로 프로퍼티

public static IValidationConfigFormatter Formatter
리턴 IValidationConfigFormatter