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 です。

適用対象