CompareAttribute 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
The recommended alternative is to use the System.ComponentModel.DataAnnotations.CompareAttribute type, which has the same functionality as this type.
모델의 두 속성을 비교하는 특성을 제공합니다.
[System.AttributeUsage(System.AttributeTargets.Property)]
[System.Obsolete("The recommended alternative is to use the System.ComponentModel.DataAnnotations.CompareAttribute type, which has the same functionality as this type.")]
public class CompareAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute, System.Web.Mvc.IClientValidatable
type CompareAttribute = class
inherit ValidationAttribute
interface IClientValidatable
Public Class CompareAttribute
Inherits ValidationAttribute
Implements IClientValidatable
- 상속
-
CompareAttribute
- 특성
- 구현
생성자
CompareAttribute(String) |
사용되지 않음.
CompareAttribute 클래스의 새 인스턴스를 초기화합니다. |
속성
OtherProperty |
사용되지 않음.
현재 속성과 비교할 속성을 가져옵니다. |
OtherPropertyDisplayName |
사용되지 않음.
다른 속성의 표시 이름입니다. |
메서드
FormatErrorMessage(String) |
사용되지 않음.
비교 오류가 발생한 데이터 필드를 기반으로 오류 메시지에 서식을 적용합니다. |
FormatPropertyForClientValidation(String) |
사용되지 않음.
별표(*)와 점(.)을 앞에 추가하여 클라이언트 유효성 검사에 대한 속성의 서식을 지정합니다. |
GetClientValidationRules(ModelMetadata, ControllerContext) |
사용되지 않음.
지정된 모델 메타데이터 및 컨트롤러 컨텍스트를 사용하여 속성에 대한 비교 값 클라이언트 유효성 검사 규칙의 목록을 가져옵니다. |
IsValid(Object, ValidationContext) |
사용되지 않음.
지정된 개체가 비교하는 개체와 같은지 확인합니다. |