Contains information about the result of a rule. More...
Public Member Functions | |
RuleResult (string ruleName, Core.IPropertyInfo property) | |
Creates a successful result. More... | |
RuleResult (string ruleName, Core.IPropertyInfo property, string description) | |
Creates a failure result. More... | |
Properties | |
string | RuleName [get] |
Gets the unique name of the rule that created this result. More... | |
bool | Success [get] |
Gets a value indicating whether the rule was successful. More... | |
string | Description [get] |
Gets a human-readable description of why the rule failed. More... | |
RuleSeverity | Severity [getset] |
Gets or sets the severity of a failed rule. More... | |
bool | StopProcessing [getset] |
Gets or sets a value indicating whether rule processing should immediately stop (applies to sync rules only). More... | |
Csla.Core.IPropertyInfo | PrimaryProperty [get] |
Gets the primary property for this result. More... | |
List< Core.IPropertyInfo > | Properties [getset] |
Gets or sets a list of properties that were affected by the rule, so appropriate PropertyChanged events can be raised for UI notification. More... | |
Dictionary< Core.IPropertyInfo, object > | OutputPropertyValues [getset] |
Gets or sets a dictionary of new property values used to update the business object's properties after the rule is complete. More... | |
Contains information about the result of a rule.
Definition at line 19 of file RuleResult.cs.
Csla.Rules.RuleResult.RuleResult | ( | string | ruleName, |
Core.IPropertyInfo | property | ||
) |
Creates a successful result.
ruleName | Unique name of the rule creating this result. |
property | Property to which this result should be attached. |
Definition at line 70 of file RuleResult.cs.
Csla.Rules.RuleResult.RuleResult | ( | string | ruleName, |
Core.IPropertyInfo | property, | ||
string | description | ||
) |
Creates a failure result.
ruleName | Unique name of the rule creating this result. |
property | Property to which this result should be attached. |
description | Human-readable description of why the rule failed. |
Definition at line 87 of file RuleResult.cs.
|
get |
Gets a human-readable description of why the rule failed.
Definition at line 35 of file RuleResult.cs.
|
getset |
Gets or sets a dictionary of new property values used to update the business object's properties after the rule is complete.
Definition at line 61 of file RuleResult.cs.
|
get |
Gets the primary property for this result.
Definition at line 49 of file RuleResult.cs.
|
getset |
Gets or sets a list of properties that were affected by the rule, so appropriate PropertyChanged events can be raised for UI notification.
Definition at line 55 of file RuleResult.cs.
|
get |
Gets the unique name of the rule that created this result.
Definition at line 25 of file RuleResult.cs.
|
getset |
Gets or sets the severity of a failed rule.
Definition at line 39 of file RuleResult.cs.
|
getset |
Gets or sets a value indicating whether rule processing should immediately stop (applies to sync rules only).
Definition at line 45 of file RuleResult.cs.
|
get |
Gets a value indicating whether the rule was successful.
Definition at line 30 of file RuleResult.cs.