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

Object representing a validation rule for an object
显示文件 Open project: netTiers/netTiers Class Usage Examples

Public Methods

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

Invokes the rule to validate the data.
public Invoke ( ) : bool
return bool

ToString() public method

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

ValidationRuleInfo() public method

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

ValidationRuleInfo() public method

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