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.DataAnnotationRuleArgs Class Reference

Arguments provided to the DataAnnotation rule method More...

Inheritance diagram for Csla.Validation.CommonRules.DataAnnotationRuleArgs:
Csla.Validation.RuleArgs

Public Member Functions

 DataAnnotationRuleArgs (string name, System.ComponentModel.DataAnnotations.ValidationAttribute attribute)
 Creates an instance of the object. More...
 
override string ToString ()
 Gets a string representation of the object. 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

System.ComponentModel.DataAnnotations.ValidationAttribute Attribute [getset]
 The attribute containing the rule implementation. 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

Arguments provided to the DataAnnotation rule method

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

Constructor & Destructor Documentation

◆ DataAnnotationRuleArgs()

Csla.Validation.CommonRules.DataAnnotationRuleArgs.DataAnnotationRuleArgs ( string  name,
System.ComponentModel.DataAnnotations.ValidationAttribute  attribute 
)

Creates an instance of the object.

Parameters
nameName of the property to be validated.
attributeSystem.ComponentModel.DataAnnotations.ValidationAttribute object containing the rule implementation.

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

Member Function Documentation

◆ ToString()

override string Csla.Validation.CommonRules.DataAnnotationRuleArgs.ToString ( )

Gets a string representation of the object.

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

Property Documentation

◆ Attribute

System.ComponentModel.DataAnnotations.ValidationAttribute Csla.Validation.CommonRules.DataAnnotationRuleArgs.Attribute
getset

The attribute containing the rule implementation.

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