C# Class Nettiers.AdventureWorks.Entities.Validation.PropertyValidator

Property Validator
Inheritance: Microsoft.Practices.EnterpriseLibrary.Validation.Validator, IValidationIntegrationProxy
Afficher le fichier Open project: netTiers/netTiers Class Usage Examples

Private Properties

Свойство Type Description
GetValue bool

Méthodes publiques

Méthode Description
GetMemberValueAccessBuilder ( ) : Microsoft.Practices.EnterpriseLibrary.Validation.MemberValueAccessBuilder

Gets the member value access builder.

GetRawValue ( ) : object

Gets the raw value.

PerformCustomValueConversion ( Microsoft.Practices.EnterpriseLibrary.Validation.Integration.ValueConvertEventArgs e ) : void

Performs the custom value conversion.

PropertyValidator ( object objectToValidate, string propertyName ) : System

Creates an instance of PropertyValidator

PropertyValidator ( object objectToValidate, string propertyName, string ruleset ) : System

Creates an instance of PropertyValidator

PropertyValidator ( object objectToValidate, string propertyName, string ruleset, ValidationSpecificationSource specificationSource ) : System

Creates an instance of PropertyValidator

Méthodes protégées

Méthode Description
DoValidate ( object objectToValidate, object currentTarget, string key, ValidationResults validationResults ) : void

Does the validate.

Private Methods

Méthode Description
GetValue ( object &value, string &valueAccessFailureMessage ) : bool

Gets the value.

Method Details

DoValidate() protected méthode

Does the validate.
protected DoValidate ( object objectToValidate, object currentTarget, string key, ValidationResults validationResults ) : void
objectToValidate object The object to validate.
currentTarget object The current target.
key string The key.
validationResults ValidationResults The validation results.
Résultat void

GetMemberValueAccessBuilder() public méthode

Gets the member value access builder.
public GetMemberValueAccessBuilder ( ) : Microsoft.Practices.EnterpriseLibrary.Validation.MemberValueAccessBuilder
Résultat Microsoft.Practices.EnterpriseLibrary.Validation.MemberValueAccessBuilder

GetRawValue() public méthode

Gets the raw value.
public GetRawValue ( ) : object
Résultat object

PerformCustomValueConversion() public méthode

Performs the custom value conversion.
public PerformCustomValueConversion ( Microsoft.Practices.EnterpriseLibrary.Validation.Integration.ValueConvertEventArgs e ) : void
e Microsoft.Practices.EnterpriseLibrary.Validation.Integration.ValueConvertEventArgs The instance containing the event data.
Résultat void

PropertyValidator() public méthode

Creates an instance of PropertyValidator
public PropertyValidator ( object objectToValidate, string propertyName ) : System
objectToValidate object The object to validate.
propertyName string The property for objectToValidate
Résultat System

PropertyValidator() public méthode

Creates an instance of PropertyValidator
public PropertyValidator ( object objectToValidate, string propertyName, string ruleset ) : System
objectToValidate object The object to validate.
propertyName string The property for objectToValidate
ruleset string The optional ruleset to use for validation.
Résultat System

PropertyValidator() public méthode

Creates an instance of PropertyValidator
public PropertyValidator ( object objectToValidate, string propertyName, string ruleset, ValidationSpecificationSource specificationSource ) : System
objectToValidate object The object to validate.
propertyName string The property for objectToValidate
ruleset string The optional ruleset to use for validation.
specificationSource ValidationSpecificationSource Whether to use validation rules from attributes, config file, or both.
Résultat System