C# 클래스 PetShop.Business.Validation.ValidationRuleInfo

Object representing a validation rule for an object
파일 보기 프로젝트 열기: netTiers/netTiers 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Invoke() 공개 메소드

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

ToString() 공개 메소드

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

ValidationRuleInfo() 공개 메소드

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.
리턴 System

ValidationRuleInfo() 공개 메소드

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.
리턴 System