C# 클래스 ExpressiveAnnotations.Attributes.AssertThatAttribute

상속: System.ComponentModel.DataAnnotations.ValidationAttribute
파일 보기 프로젝트 열기: jwaliszko/ExpressiveAnnotations 1 사용 예제들

공개 메소드들

메소드 설명
AssertThatAttribute ( string expression ) : System

Initializes a new instance of the AssertThatAttribute class.

보호된 메소드들

메소드 설명
IsValidInternal ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

Validates a specified value with respect to the associated validation attribute. Internally used by the ExpressiveAttribute.IsValid(object,System.ComponentModel.DataAnnotations.ValidationContext) method.

메소드 상세

AssertThatAttribute() 공개 메소드

Initializes a new instance of the AssertThatAttribute class.
public AssertThatAttribute ( string expression ) : System
expression string The logical expression based on which assertion condition is computed.
리턴 System

IsValidInternal() 보호된 메소드

Validates a specified value with respect to the associated validation attribute. Internally used by the ExpressiveAttribute.IsValid(object,System.ComponentModel.DataAnnotations.ValidationContext) method.
protected IsValidInternal ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object The value to validate.
validationContext System.ComponentModel.DataAnnotations.ValidationContext The validation context.
리턴 System.ComponentModel.DataAnnotations.ValidationResult