C# Class HermaFx.DataAnnotations.ExtendedValidator

Afficher le fichier Open project: evicertia/HermaFx Class Usage Examples

Méthodes publiques

Méthode Description
EnsureIsValid ( object obj ) : void

Ensures the object is valid.

EnsureIsValid ( object obj, bool validateAllProperties ) : void

Ensures the object is valid.

IsValid ( object obj ) : bool

Determines whether the specified object passes validation without errors.

IsValid ( object obj, bool validateAllProperties ) : bool

Determines whether the specified object passes validation without errors.

Validate ( object obj ) : IEnumerable

Determines whether the specified object is valid and returns an list of ValidationResults.

Validate ( object obj, bool validateAllProperties ) : IEnumerable

Determines whether the specified object is valid and returns an list of ValidationResults.

Private Methods

Méthode Description
CreateContextItems ( bool validateAllProperties ) : object>.IDictionary
ShouldValidateAllProperties ( System.ComponentModel.DataAnnotations.ValidationContext context ) : bool
TryGetSeenHashFrom ( System.ComponentModel.DataAnnotations.ValidationContext context ) : HashSet
ValidateClass ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable
ValidateProperties ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable
ValidateRecursing ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable

Method Details

EnsureIsValid() public static méthode

Ensures the object is valid.
Validation failed
public static EnsureIsValid ( object obj ) : void
obj object The object.
Résultat void

EnsureIsValid() public static méthode

Ensures the object is valid.
Validation failed
public static EnsureIsValid ( object obj, bool validateAllProperties ) : void
obj object The object.
validateAllProperties bool /// If true, evaluates all the properties, otherwise just checks that /// ones marked with are not null. ///
Résultat void

IsValid() public static méthode

Determines whether the specified object passes validation without errors.
public static IsValid ( object obj ) : bool
obj object The object.
Résultat bool

IsValid() public static méthode

Determines whether the specified object passes validation without errors.
public static IsValid ( object obj, bool validateAllProperties ) : bool
obj object The object.
validateAllProperties bool /// If true, evaluates all the properties, otherwise just checks that /// ones marked with are not null. ///
Résultat bool

Validate() public static méthode

Determines whether the specified object is valid and returns an list of ValidationResults.
public static Validate ( object obj ) : IEnumerable
obj object The object.
Résultat IEnumerable

Validate() public static méthode

Determines whether the specified object is valid and returns an list of ValidationResults.
public static Validate ( object obj, bool validateAllProperties ) : IEnumerable
obj object The object.
validateAllProperties bool /// If true, evaluates all the properties, otherwise just checks that /// ones marked with are not null. ///
Résultat IEnumerable