C# Class xVal.Html.ValidationInfo

Represents a validation configuration that can be rendered to the client
Exibir arquivo Open project: fellowshiptech/ft-iserve Class Usage Examples

Public Properties

Property Type Description
Formatter IValidationConfigFormatter

Public Methods

Method Description
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

Private Methods

Method Description
MergeAddedRulesIntoRuleSet ( ) : void
WrapInScriptTag ( string statement ) : string

Method Details

AddRule() public method

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

SuppressScriptTags() public method

public SuppressScriptTags ( ) : ValidationInfo
return ValidationInfo

ToString() public method

public ToString ( ) : string
return string

ValidationInfo() public method

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

ValidationInfo() public method

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
return System

Property Details

Formatter public_oe static_oe property

public static IValidationConfigFormatter Formatter
return IValidationConfigFormatter