다음을 통해 공유


ModelBinderDictionary.GetBinder 메서드

정의

오버로드

GetBinder(Type, Boolean)

지정된 형식에 대한 모델 바인더를 검색하거나 기본 모델 바인더를 검색합니다.

GetBinder(Type)

지정된 형식에 대한 모델 바인더를 검색합니다.

GetBinder(Type, Boolean)

지정된 형식에 대한 모델 바인더를 검색하거나 기본 모델 바인더를 검색합니다.

public virtual System.Web.Mvc.IModelBinder GetBinder (Type modelType, bool fallbackToDefault);
abstract member GetBinder : Type * bool -> System.Web.Mvc.IModelBinder
override this.GetBinder : Type * bool -> System.Web.Mvc.IModelBinder
Public Overridable Function GetBinder (modelType As Type, fallbackToDefault As Boolean) As IModelBinder

매개 변수

modelType
Type

검색할 모델의 형식입니다.

fallbackToDefault
Boolean

기본 모델 바인더를 검색하려면 true입니다.

반환

모델 바인더입니다.

예외

modelType 매개 변수가 null인 경우

적용 대상

GetBinder(Type)

지정된 형식에 대한 모델 바인더를 검색합니다.

public System.Web.Mvc.IModelBinder GetBinder (Type modelType);
member this.GetBinder : Type -> System.Web.Mvc.IModelBinder
Public Function GetBinder (modelType As Type) As IModelBinder

매개 변수

modelType
Type

검색할 모델의 형식입니다.

반환

모델 바인더입니다.

예외

modelType 매개 변수가 null인 경우

적용 대상