CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Validation.CommonRules.MaxValueRuleArgs< T > Class Template Reference

Custom RuleArgs object required by the MaxValue rule method. More...

Inheritance diagram for Csla.Validation.CommonRules.MaxValueRuleArgs< T >:
Csla.Validation.DecoratedRuleArgs Csla.Validation.RuleArgs

Public Member Functions

 MaxValueRuleArgs (string propertyName, T maxValue)
 Create a new object. More...
 
 MaxValueRuleArgs (Core.IPropertyInfo propertyInfo, T maxValue)
 Create a new object. More...
 
 MaxValueRuleArgs (string propertyName, string friendlyName, T maxValue)
 Create a new object. More...
 
 MaxValueRuleArgs (string propertyName, T maxValue, string format)
 Create a new object. More...
 
 MaxValueRuleArgs (Core.IPropertyInfo propertyInfo, T maxValue, string format)
 Create a new object. More...
 
 MaxValueRuleArgs (string propertyName, string friendlyName, T maxValue, string format)
 Create a new object. More...
 
- Public Member Functions inherited from Csla.Validation.DecoratedRuleArgs
 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

MaxValue [get]
 Get the max value for the property. More...
 
- Properties inherited from Csla.Validation.DecoratedRuleArgs
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...
 

Detailed Description

Custom RuleArgs object required by the MaxValue rule method.

Template Parameters
TType of the property to validate.

Definition at line 649 of file Csla.Validation.Shared/CommonRules.cs.

Constructor & Destructor Documentation

◆ MaxValueRuleArgs() [1/6]

Csla.Validation.CommonRules.MaxValueRuleArgs< T >.MaxValueRuleArgs ( string  propertyName,
maxValue 
)

Create a new object.

Parameters
propertyNameName of the property.
maxValueMaximum allowed value for the property.

Definition at line 664 of file Csla.Validation.Shared/CommonRules.cs.

◆ MaxValueRuleArgs() [2/6]

Create a new object.

Parameters
propertyInfoProperty to validate.
maxValueMaximum allowed value for the property.

Definition at line 677 of file Csla.Validation.Shared/CommonRules.cs.

◆ MaxValueRuleArgs() [3/6]

Csla.Validation.CommonRules.MaxValueRuleArgs< T >.MaxValueRuleArgs ( string  propertyName,
string  friendlyName,
maxValue 
)

Create a new object.

Parameters
propertyNameName of the property.
friendlyNameA friendly name for the property, which will be used in place of the property name when creating the broken rule description string.
maxValueMaximum allowed value for the property.

Definition at line 693 of file Csla.Validation.Shared/CommonRules.cs.

◆ MaxValueRuleArgs() [4/6]

Csla.Validation.CommonRules.MaxValueRuleArgs< T >.MaxValueRuleArgs ( string  propertyName,
maxValue,
string  format 
)

Create a new object.

Parameters
propertyNameName of the property.
maxValueMaximum allowed value for the property.
formatFormat string for the max value value in the broken rule string.

Definition at line 709 of file Csla.Validation.Shared/CommonRules.cs.

◆ MaxValueRuleArgs() [5/6]

Csla.Validation.CommonRules.MaxValueRuleArgs< T >.MaxValueRuleArgs ( Core.IPropertyInfo  propertyInfo,
maxValue,
string  format 
)

Create a new object.

Parameters
propertyInfoProperty to validate.
maxValueMaximum allowed value for the property.
formatFormat string for the max value value in the broken rule string.

Definition at line 724 of file Csla.Validation.Shared/CommonRules.cs.

◆ MaxValueRuleArgs() [6/6]

Csla.Validation.CommonRules.MaxValueRuleArgs< T >.MaxValueRuleArgs ( string  propertyName,
string  friendlyName,
maxValue,
string  format 
)

Create a new object.

Parameters
propertyNameName of the property.
friendlyNameA friendly name for the property, which will be used in place of the property name when creating the broken rule description string.
maxValueMaximum allowed value for the property.
formatFormat string for the max value value in the broken rule string.

Definition at line 742 of file Csla.Validation.Shared/CommonRules.cs.

Property Documentation

◆ MaxValue

Get the max value for the property.

Definition at line 654 of file Csla.Validation.Shared/CommonRules.cs.