C# 클래스 FluentValidation.Validators.PropertyValidator

상속: IPropertyValidator
파일 보기 프로젝트 열기: JeremySkinner/FluentValidation 1 사용 예제들

공개 메소드들

메소드 설명
Validate ( PropertyValidatorContext context ) : IEnumerable
ValidateAsync ( PropertyValidatorContext context, CancellationToken cancellation ) : Task>

보호된 메소드들

메소드 설명
CreateValidationError ( PropertyValidatorContext context ) : ValidationFailure

Creates an error validation result for this validator.

IsValid ( PropertyValidatorContext context ) : bool
IsValidAsync ( PropertyValidatorContext context, CancellationToken cancellation ) : Task
PrepareMessageFormatterForValidationError ( PropertyValidatorContext context ) : void

Prepares the MessageFormatter of context for an upcoming ValidationFailure.

PropertyValidator ( Expression errorMessageResourceSelector ) : System.Threading
PropertyValidator ( string errorMessage ) : System.Threading
PropertyValidator ( string errorMessageResourceName, Type errorMessageResourceType ) : System.Threading

비공개 메소드들

메소드 설명
BuildErrorMessage ( PropertyValidatorContext context ) : string

메소드 상세

CreateValidationError() 보호된 메소드

Creates an error validation result for this validator.
protected CreateValidationError ( PropertyValidatorContext context ) : ValidationFailure
context PropertyValidatorContext The validator context
리턴 ValidationFailure

IsValid() 보호된 추상적인 메소드

protected abstract IsValid ( PropertyValidatorContext context ) : bool
context PropertyValidatorContext
리턴 bool

IsValidAsync() 보호된 메소드

protected IsValidAsync ( PropertyValidatorContext context, CancellationToken cancellation ) : Task
context PropertyValidatorContext
cancellation CancellationToken
리턴 Task

PrepareMessageFormatterForValidationError() 보호된 메소드

Prepares the MessageFormatter of context for an upcoming ValidationFailure.
protected PrepareMessageFormatterForValidationError ( PropertyValidatorContext context ) : void
context PropertyValidatorContext The validator context
리턴 void

PropertyValidator() 보호된 메소드

protected PropertyValidator ( Expression errorMessageResourceSelector ) : System.Threading
errorMessageResourceSelector Expression
리턴 System.Threading

PropertyValidator() 보호된 메소드

protected PropertyValidator ( string errorMessage ) : System.Threading
errorMessage string
리턴 System.Threading

PropertyValidator() 보호된 메소드

protected PropertyValidator ( string errorMessageResourceName, Type errorMessageResourceType ) : System.Threading
errorMessageResourceName string
errorMessageResourceType System.Type
리턴 System.Threading

Validate() 공개 메소드

public Validate ( PropertyValidatorContext context ) : IEnumerable
context PropertyValidatorContext
리턴 IEnumerable

ValidateAsync() 공개 메소드

public ValidateAsync ( PropertyValidatorContext context, CancellationToken cancellation ) : Task>
context PropertyValidatorContext
cancellation CancellationToken
리턴 Task>