RequiredAttributeAdapter 클래스

정의

public ref class RequiredAttributeAdapter sealed : Microsoft::AspNetCore::Mvc::DataAnnotations::AttributeAdapterBase<System::ComponentModel::DataAnnotations::RequiredAttribute ^>
public sealed class RequiredAttributeAdapter : Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
type RequiredAttributeAdapter = class
    inherit AttributeAdapterBase<RequiredAttribute>
Public NotInheritable Class RequiredAttributeAdapter
Inherits AttributeAdapterBase(Of RequiredAttribute)
상속

생성자

RequiredAttributeAdapter(RequiredAttribute, IStringLocalizer)

RequiredAttributeAdapter의 새 인스턴스를 초기화합니다.

속성

Attribute

TAttribute 인스턴스를 가져옵니다.

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

메서드

AddValidation(ClientModelValidationContext)

RequiredAttribute에 대한 AttributeAdapterBase<TAttribute>.

GetErrorMessage(ModelMetadata, Object[])

를 사용하여 Attribute형식이 지정된 오류 메시지를 가져옵니다.

(다음에서 상속됨 ValidationAttributeAdapter<TAttribute>)
GetErrorMessage(ModelValidationContextBase)

오류 메시지를 가져옵니다.

적용 대상