ModelBinderDictionary.GetBinder メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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 です。