C# 클래스 Castle.Components.Validator.ValidateNotSameAsAttribute

Validates that the content has a different value from the property informed.
상속: Castle.Components.Validator.AbstractValidationAttribute
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
Build ( ) : IValidator

Constructs and configures an IValidator instance based on the properties set on the attribute instance.

ValidateNotSameAsAttribute ( string propertyToCompare )

Initializes a new instance of the ValidateNotSameAsAttribute class.

ValidateNotSameAsAttribute ( string propertyToCompare, string errorMessage )

Initializes a new instance of the ValidateNotSameAsAttribute class.

메소드 상세

Build() 공개 메소드

Constructs and configures an IValidator instance based on the properties set on the attribute instance.
public Build ( ) : IValidator
리턴 IValidator

ValidateNotSameAsAttribute() 공개 메소드

Initializes a new instance of the ValidateNotSameAsAttribute class.
public ValidateNotSameAsAttribute ( string propertyToCompare )
propertyToCompare string The property to compare.

ValidateNotSameAsAttribute() 공개 메소드

Initializes a new instance of the ValidateNotSameAsAttribute class.
public ValidateNotSameAsAttribute ( string propertyToCompare, string errorMessage )
propertyToCompare string The property to compare.
errorMessage string The error message.