C# 클래스 HermaFx.DataAnnotations.ExtendedValidator

파일 보기 프로젝트 열기: evicertia/HermaFx 1 사용 예제들

공개 메소드들

메소드 설명
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