Свойство | Тип | Описание | |
---|---|---|---|
GetPropertyRules | List |
||
ValidateRuleList | void | ||
ValidationRules | System |
Метод | Описание | |
---|---|---|
AddRule ( ValidationRuleHandler handler, |
Adds a rule to the list of validated rules. A rule is implemented by a method which conforms to the method signature defined by the ValidationRuleHandler delegate. |
|
AddRule ( ValidationRuleHandler handler, string propertyName ) : void |
Adds a rule to the list of validated rules. A rule is implemented by a method which conforms to the method signature defined by the ValidationRuleHandler delegate. |
|
Clear ( ) : void |
Clear the rules list.
|
|
GetBrokenRules ( ) : BrokenRulesList |
Return a BrokenRulesList that contains all of the invalid rules.
|
|
ValidateRules ( ) : void |
Validate all the rules for all properties.
|
|
ValidateRules ( string propertyName ) : void |
Validates all rules for a property
|
Метод | Описание | |
---|---|---|
GetPropertyRules ( string propertyName ) : List |
Returns a list of ValidationRuleInfo objects for a specified property.
|
|
ValidateRuleList ( List |
Validates a list of rules. This method calls the Invoke method on each rule in the list. If the rule fails, it is added to the BrokenRulesList |
|
ValidationRules ( object businessEntity ) : System |
Creates an instance of the class and associates the target.
|
public AddRule ( ValidationRuleHandler handler, |
||
handler | ValidationRuleHandler | The method that implements the rule. |
args |
/// A |
|
Результат | void |
public AddRule ( ValidationRuleHandler handler, string propertyName ) : void | ||
handler | ValidationRuleHandler | The method that implements the rule. |
propertyName | string | /// The name of the property on the target object where the rule implementation can retrieve /// the value to be validated. /// |
Результат | void |
public GetBrokenRules ( ) : BrokenRulesList | ||
Результат | BrokenRulesList |
public ValidateRules ( string propertyName ) : void | ||
propertyName | string | Name of the property to validate. |
Результат | void |