DataAnnotationsModelValidatorProvider.GetValidators 메서드

정의

모델에 대한 유효성 검사기의 컬렉션을 가져옵니다.

protected:
 override System::Collections::Generic::IEnumerable<System::Web::ModelBinding::ModelValidator ^> ^ GetValidators(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ context, System::Collections::Generic::IEnumerable<Attribute ^> ^ attributes);
protected override System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelValidator> GetValidators (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context, System.Collections.Generic.IEnumerable<Attribute> attributes);
override this.GetValidators : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext * seq<Attribute> -> seq<System.Web.ModelBinding.ModelValidator>
Protected Overrides Function GetValidators (metadata As ModelMetadata, context As ModelBindingExecutionContext, attributes As IEnumerable(Of Attribute)) As IEnumerable(Of ModelValidator)

매개 변수

metadata
ModelMetadata

메타데이터입니다.

context
ModelBindingExecutionContext

실행 컨텍스트입니다.

attributes
IEnumerable<Attribute>

유효성 검사 특성입니다.

반환

IEnumerable<ModelValidator>

유효성 검사기의 컬렉션입니다.

적용 대상