다음을 통해 공유


SimpleTypeModelBinder 클래스

정의

단순 형식에 대한 입니다 IModelBinder .

public ref class SimpleTypeModelBinder : Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder
public class SimpleTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
type SimpleTypeModelBinder = class
    interface IModelBinder
Public Class SimpleTypeModelBinder
Implements IModelBinder
상속
SimpleTypeModelBinder
파생
구현

생성자

SimpleTypeModelBinder(Type)
사용되지 않음.

이 생성자는 사용되지 않으며 이후 버전에서 제거됩니다. 권장되는 대안은 을 사용하는 오버로드입니다 ILoggerFactory.

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

SimpleTypeModelBinder(Type, ILoggerFactory)

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

메서드

BindModelAsync(ModelBindingContext)

모델을 바인딩하려고 시도합니다.

CheckModel(ModelBindingContext, ValueProviderResult, Object)

가 인 modelnull경우 가 가 될 수 null있는지 확인합니다. 그렇지 않으면 에 잘못된 valueProviderResult에 대해 알 수 있습니다ModelBindingContext.ModelState. 성공하면 P:ModelBindingContext.Result 를 로 model 설정합니다.

적용 대상