MaxLengthAttributeAdapter 클래스

정의

특성에 대한 MaxLengthAttribute 어댑터를 제공합니다.

public ref class MaxLengthAttributeAdapter sealed : System::Web::ModelBinding::DataAnnotationsModelValidator<System::ComponentModel::DataAnnotations::MaxLengthAttribute ^>
public sealed class MaxLengthAttributeAdapter : System.Web.ModelBinding.DataAnnotationsModelValidator<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
type MaxLengthAttributeAdapter = class
    inherit DataAnnotationsModelValidator<MaxLengthAttribute>
Public NotInheritable Class MaxLengthAttributeAdapter
Inherits DataAnnotationsModelValidator(Of MaxLengthAttribute)
상속

생성자

Name Description
MaxLengthAttributeAdapter(ModelMetadata, ModelBindingExecutionContext, MaxLengthAttribute)

MaxLengthAttributeAdapter 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
Attribute

유효성 검사 특성을 가져옵니다.

(다음에서 상속됨 DataAnnotationsModelValidator<TAttribute>)
ErrorMessage

유효성 검사 실패에 대한 오류 메시지를 가져옵니다.

(다음에서 상속됨 DataAnnotationsModelValidator)
IsRequired

모델이 필요한지 여부(즉, 속성 RequiredAttribute 의 유효성 검사 특성 Attribute 이 특성인지 여부)를 나타내는 값을 가져옵니다.

(다음에서 상속됨 DataAnnotationsModelValidator)
Metadata

파생 클래스에서 구현되는 경우 모델 유효성 검사기에 대한 메타데이터를 가져옵니다.

(다음에서 상속됨 ModelValidator)
ModelBindingExecutionContext

파생 클래스에서 구현되는 경우 실행 컨텍스트를 가져옵니다.

(다음에서 상속됨 ModelValidator)

메서드

Name Description
Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetLocalizedErrorMessage(String)

모델에 대한 지역화된 오류 메시지를 가져옵니다.

(다음에서 상속됨 DataAnnotationsModelValidator)
GetLocalizedString(String, Object[])

특정 문자열에 대한 지역화된 버전을 가져옵니다.

(다음에서 상속됨 DataAnnotationsModelValidator)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
Validate(Object)

모델에 대한 유효성 검사 오류 메시지 목록을 반환합니다.

(다음에서 상속됨 DataAnnotationsModelValidator)

적용 대상