C# Class Habanero.Faces.Base.ValidationRule

Provides a validation rule that checks if the value in a control is valid. ValidationRule is designed to be a simple as possible to reduce overhead in run-time. Because each validation rule can be attach to a control, there could be many instances of this class.
Inheritance: ICloneable
Afficher le fichier Open project: Chillisoft/habanero.faces Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Clone ( ) : object

ValidationRule is memberwised cloneable.

Compare ( string leftText, string rightText, ValidationCompareOperator op, ValidationRule vr ) : bool

Compare two values.

Méthodes protégées

Méthode Description
OnCustomValidationMethod ( CustomValidationEventArgs e ) : void

Delegate invoking of validation method.

Method Details

Clone() public méthode

ValidationRule is memberwised cloneable.
public Clone ( ) : object
Résultat object

Compare() public static méthode

Compare two values.
public static Compare ( string leftText, string rightText, ValidationCompareOperator op, ValidationRule vr ) : bool
leftText string
rightText string
op ValidationCompareOperator
vr ValidationRule
Résultat bool

OnCustomValidationMethod() protected méthode

Delegate invoking of validation method.
protected OnCustomValidationMethod ( CustomValidationEventArgs e ) : void
e CustomValidationEventArgs
Résultat void