FieldTemplateUserControl.IgnoreModelValidationAttribute(Type) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
DynamicValidator 특정 유형의 모델 유효성 검사 특성을 무시할 수 있습니다.
protected:
void IgnoreModelValidationAttribute(Type ^ attributeType);
protected void IgnoreModelValidationAttribute(Type attributeType);
member this.IgnoreModelValidationAttribute : Type -> unit
Protected Sub IgnoreModelValidationAttribute (attributeType As Type)
매개 변수
- attributeType
- Type
무시할 특성입니다.
설명
이 메서드를 DynamicValidator 사용하면 특정 유형의 모델 유효성 검사 특성을 무시할 수 있습니다. 이 메서드는 특성 형식이 이미 ASP.NET 유효성 검사 컨트롤에 의해 처리된 경우 호출됩니다. 이 호출이 없으면 유효성 검사가 두 번 수행되어 중복 오류 메시지가 발생할 수 있습니다.