C# Class xVal.Html.ValidationInfo

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

Méthodes publiques

Свойство Type Description
Formatter IValidationConfigFormatter

Méthodes publiques

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

Méthode Description
MergeAddedRulesIntoRuleSet ( ) : void
WrapInScriptTag ( string statement ) : string

Method Details

AddRule() public méthode

public AddRule ( string propertyName, Rule rule ) : ValidationInfo
propertyName string
rule xVal.Rules.Rule
Résultat ValidationInfo

SuppressScriptTags() public méthode

public SuppressScriptTags ( ) : ValidationInfo
Résultat ValidationInfo

ToString() public méthode

public ToString ( ) : string
Résultat string

ValidationInfo() public méthode

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

ValidationInfo() public méthode

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
Résultat System

Property Details

Formatter public_oe static_oe property

public static IValidationConfigFormatter Formatter
Résultat IValidationConfigFormatter