C# Class Nettiers.AdventureWorks.Entities.Validation.ValidationRuleInfo

Object representing a validation rule for an object
Afficher le fichier Open project: netTiers/netTiers Class Usage Examples

Méthodes publiques

Méthode Description
Invoke ( ) : bool

Invokes the rule to validate the data.

ToString ( ) : string

Returns a text representation of the rule which is the RuleName.

ValidationRuleInfo ( object target, ValidationRuleHandler handler, ValidationRuleArgs args ) : System

Creates and initializes the rule.

ValidationRuleInfo ( object target, ValidationRuleHandler handler, string propertyName ) : System

Creates and initializes the rule.

Method Details

Invoke() public méthode

Invokes the rule to validate the data.
public Invoke ( ) : bool
Résultat bool

ToString() public méthode

Returns a text representation of the rule which is the RuleName.
public ToString ( ) : string
Résultat string

ValidationRuleInfo() public méthode

Creates and initializes the rule.
public ValidationRuleInfo ( object target, ValidationRuleHandler handler, ValidationRuleArgs args ) : System
target object Object reference containing the data to validate.
handler ValidationRuleHandler The address of the method implementing .
args ValidationRuleArgs A object.
Résultat System

ValidationRuleInfo() public méthode

Creates and initializes the rule.
public ValidationRuleInfo ( object target, ValidationRuleHandler handler, string propertyName ) : System
target object Object reference containing the data to validate.
handler ValidationRuleHandler The address of the method implementing .
propertyName string The name of the property to which the rule applies.
Résultat System