Object providing extra information to methods that implement business rules. More...
Public Member Functions | |
DecoratedRuleArgs (string propertyName) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, RuleSeverity severity, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, RuleSeverity severity, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, RuleSeverity severity, bool stopProcessing, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity, bool stopProcessing, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
DecoratedRuleArgs (string propertyName, string friendlyName, RuleSeverity severity, bool stopProcessing, Dictionary< string, object > args) | |
Creates an instance of RuleArgs. More... | |
override string | ToString () |
Return a string representation of the object using the rule:// URI format. More... | |
Public Member Functions inherited from Csla.Validation.RuleArgs | |
RuleArgs (string propertyName) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (Core.IPropertyInfo propertyInfo) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, string friendlyName) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, string friendlyName, RuleSeverity severity) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (Core.IPropertyInfo propertyInfo, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
RuleArgs (string propertyName, string friendlyName, RuleSeverity severity, bool stopProcessing) | |
Creates an instance of RuleArgs. More... | |
override string | ToString () |
Returns a string representation of the object. More... | |
Properties | |
object | this[string key] [getset] |
Gets or sets an argument value for use by the rule method. More... | |
Properties inherited from Csla.Validation.RuleArgs | |
string | PropertyName [get] |
The name of the property to be validated. More... | |
string | PropertyFriendlyName [getset] |
Gets or sets a friendly name for the property, which will be used in place of the property name when creating the broken rule description string. More... | |
string | Description [getset] |
Set by the rule handler method to describe the broken rule. More... | |
RuleSeverity | Severity [getset] |
Gets or sets the severity of the broken rule. More... | |
bool | StopProcessing [getset] |
Gets or sets a value indicating whether this broken rule should stop the processing of subsequent rules for this property. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Csla.Validation.RuleArgs | |
static string | GetPropertyName (RuleArgs e) |
Gets the property name from the RuleArgs object, using the friendly name if one is defined. More... | |
Object providing extra information to methods that implement business rules.
Definition at line 23 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName | ) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
Definition at line 33 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | Core.IPropertyInfo | propertyInfo | ) |
Creates an instance of RuleArgs.
propertyInfo | The PropertyInfo for the property to be validated. |
Definition at line 43 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
string | friendlyName | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
Definition at line 56 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
RuleSeverity | severity | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
severity | Initial default severity for the rule. |
The severity parameter defines only the initial default severity value. If the rule changes this value by setting e.Severity, then that new value will become the default for all subsequent rule invocations.
To avoid confusion, it is recommended that the severity constructor parameter only be used for rule methods that do not explicitly set e.Severity.
Definition at line 80 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
RuleSeverity | severity | ||
) |
Creates an instance of RuleArgs.
propertyInfo | The PropertyInfo for the property to be validated. |
severity | Initial default severity for the rule. |
The severity parameter defines only the initial default severity value. If the rule changes this value by setting e.Severity, then that new value will become the default for all subsequent rule invocations.
To avoid confusion, it is recommended that the severity constructor parameter only be used for rule methods that do not explicitly set e.Severity.
Definition at line 104 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
RuleSeverity | severity | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
severity | Initial default severity for the rule. |
The severity parameter defines only the initial default severity value. If the rule changes this value by setting e.Severity, then that new value will become the default for all subsequent rule invocations.
To avoid confusion, it is recommended that the severity constructor parameter only be used for rule methods that do not explicitly set e.Severity.
Definition at line 131 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
RuleSeverity | severity, | ||
bool | stopProcessing | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
severity | The default severity for the rule. |
stopProcessing | Initial default value for the StopProcessing property. |
The severity and stopProcessing parameters define only the initial default values. If the rule changes these values by setting e.Severity or e.StopProcessing, then the new values will become the default for all subsequent rule invocations.
To avoid confusion, It is recommended that the severity and stopProcessing constructor parameters only be used for rule methods that do not explicitly set e.Severity or e.StopProcessing.
Definition at line 159 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
RuleSeverity | severity, | ||
bool | stopProcessing | ||
) |
Creates an instance of RuleArgs.
propertyInfo | The PropertyInfo for the property to be validated. |
severity | The default severity for the rule. |
stopProcessing | Initial default value for the StopProcessing property. |
The severity and stopProcessing parameters define only the initial default values. If the rule changes these values by setting e.Severity or e.StopProcessing, then the new values will become the default for all subsequent rule invocations.
To avoid confusion, It is recommended that the severity and stopProcessing constructor parameters only be used for rule methods that do not explicitly set e.Severity or e.StopProcessing.
Definition at line 187 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
RuleSeverity | severity, | ||
bool | stopProcessing | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
severity | The default severity for the rule. |
stopProcessing | Initial default value for the StopProcessing property. |
The severity and stopProcessing parameters define only the initial default values. If the rule changes these values by setting e.Severity or e.StopProcessing, then the new values will become the default for all subsequent rule invocations.
To avoid confusion, It is recommended that the severity and stopProcessing constructor parameters only be used for rule methods that do not explicitly set e.Severity or e.StopProcessing.
Definition at line 218 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
Definition at line 232 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyInfo | The PropertyInfo for the property to be validated. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
Definition at line 244 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
Definition at line 259 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
RuleSeverity | severity, | ||
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
severity | Initial default severity for the rule. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
The severity parameter defines only the initial default severity value. If the rule changes this value by setting e.Severity, then that new value will become the default for all subsequent rule invocations.
To avoid confusion, it is recommended that the severity constructor parameter only be used for rule methods that do not explicitly set e.Severity.
Definition at line 285 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
RuleSeverity | severity, | ||
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyInfo | The PropertyInfo for the property to be validated. |
severity | Initial default severity for the rule. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
The severity parameter defines only the initial default severity value. If the rule changes this value by setting e.Severity, then that new value will become the default for all subsequent rule invocations.
To avoid confusion, it is recommended that the severity constructor parameter only be used for rule methods that do not explicitly set e.Severity.
Definition at line 311 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
RuleSeverity | severity, | ||
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
severity | Initial default severity for the rule. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
The severity parameter defines only the initial default severity value. If the rule changes this value by setting e.Severity, then that new value will become the default for all subsequent rule invocations.
To avoid confusion, it is recommended that the severity constructor parameter only be used for rule methods that do not explicitly set e.Severity.
Definition at line 340 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
RuleSeverity | severity, | ||
bool | stopProcessing, | ||
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
severity | The default severity for the rule. |
stopProcessing | Initial default value for the StopProcessing property. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
The severity and stopProcessing parameters define only the initial default values. If the rule changes these values by setting e.Severity or e.StopProcessing, then the new values will become the default for all subsequent rule invocations.
To avoid confusion, It is recommended that the severity and stopProcessing constructor parameters only be used for rule methods that do not explicitly set e.Severity or e.StopProcessing.
Definition at line 370 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | Core.IPropertyInfo | propertyInfo, |
RuleSeverity | severity, | ||
bool | stopProcessing, | ||
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyInfo | The PropertyInfo for the property to be validated. |
severity | The default severity for the rule. |
stopProcessing | Initial default value for the StopProcessing property. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
The severity and stopProcessing parameters define only the initial default values. If the rule changes these values by setting e.Severity or e.StopProcessing, then the new values will become the default for all subsequent rule invocations.
To avoid confusion, It is recommended that the severity and stopProcessing constructor parameters only be used for rule methods that do not explicitly set e.Severity or e.StopProcessing.
Definition at line 400 of file DecoratedRuleArgs.cs.
Csla.Validation.DecoratedRuleArgs.DecoratedRuleArgs | ( | string | propertyName, |
string | friendlyName, | ||
RuleSeverity | severity, | ||
bool | stopProcessing, | ||
Dictionary< string, object > | args | ||
) |
Creates an instance of RuleArgs.
propertyName | The name of the property to be validated. |
friendlyName | A friendly name for the property, which will be used in place of the property name when creating the broken rule description string. |
severity | The default severity for the rule. |
stopProcessing | Initial default value for the StopProcessing property. |
args | Reference to a Dictionary containing name/value arguments for use by the rule method. |
The severity and stopProcessing parameters define only the initial default values. If the rule changes these values by setting e.Severity or e.StopProcessing, then the new values will become the default for all subsequent rule invocations.
To avoid confusion, It is recommended that the severity and stopProcessing constructor parameters only be used for rule methods that do not explicitly set e.Severity or e.StopProcessing.
Definition at line 433 of file DecoratedRuleArgs.cs.
override string Csla.Validation.DecoratedRuleArgs.ToString | ( | ) |
Return a string representation of the object using the rule:// URI format.
Definition at line 466 of file DecoratedRuleArgs.cs.
|
getset |
Gets or sets an argument value for use by the rule method.
key | The name under which the value is stored. |
Definition at line 445 of file DecoratedRuleArgs.cs.