C# Класс Nettiers.AdventureWorks.Entities.Validation.ValidationRuleInfo

Object representing a validation rule for an object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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