C# Класс HermaFx.DataAnnotations.ExtendedValidator

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

EnsureIsValid() публичный статический Метод

Ensures the object is valid.
Validation failed
public static EnsureIsValid ( object obj ) : void
obj object The object.
Результат void

EnsureIsValid() публичный статический Метод

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. ///
Результат void

IsValid() публичный статический Метод

Determines whether the specified object passes validation without errors.
public static IsValid ( object obj ) : bool
obj object The object.
Результат bool

IsValid() публичный статический Метод

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. ///
Результат bool

Validate() публичный статический Метод

Determines whether the specified object is valid and returns an list of ValidationResults.
public static Validate ( object obj ) : IEnumerable
obj object The object.
Результат IEnumerable

Validate() публичный статический Метод

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. ///
Результат IEnumerable