ModelBinderProviderCollection.RegisterBinderForGenericType メソッド

定義

ジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。

オーバーロード

名前 説明
RegisterBinderForGenericType(Type, Func<Type[],IModelBinder>)

指定したモデル型とモデル バインダー ファクトリを使用して、ジェネリック型のコレクションにモデル バインダーを追加します。

RegisterBinderForGenericType(Type, Type)

指定したモデル型とモデル バインダー型を使用して、ジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。

RegisterBinderForGenericType(Type, IModelBinder)

指定したモデル型とモデル バインダーを使用して、ジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。

RegisterBinderForGenericType(Type, Func<Type[],IModelBinder>)

指定したモデル型とモデル バインダー ファクトリを使用して、ジェネリック型のコレクションにモデル バインダーを追加します。

public:
 void RegisterBinderForGenericType(Type ^ modelType, Func<cli::array <Type ^> ^, System::Web::ModelBinding::IModelBinder ^> ^ modelBinderFactory);
public void RegisterBinderForGenericType(Type modelType, Func<Type[],System.Web.ModelBinding.IModelBinder> modelBinderFactory);
member this.RegisterBinderForGenericType : Type * Func<Type[], System.Web.ModelBinding.IModelBinder> -> unit
Public Sub RegisterBinderForGenericType (modelType As Type, modelBinderFactory As Func(Of Type(), IModelBinder))

パラメーター

modelType
Type

モデルの種類。

modelBinderFactory
Func<Type[],IModelBinder>

モデル バインダー ファクトリ。

適用対象

RegisterBinderForGenericType(Type, Type)

指定したモデル型とモデル バインダー型を使用して、ジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。

public:
 void RegisterBinderForGenericType(Type ^ modelType, Type ^ modelBinderType);
public void RegisterBinderForGenericType(Type modelType, Type modelBinderType);
member this.RegisterBinderForGenericType : Type * Type -> unit
Public Sub RegisterBinderForGenericType (modelType As Type, modelBinderType As Type)

パラメーター

modelType
Type

モデルの種類。

modelBinderType
Type

モデル バインダーの種類。

適用対象

RegisterBinderForGenericType(Type, IModelBinder)

指定したモデル型とモデル バインダーを使用して、ジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。

public:
 void RegisterBinderForGenericType(Type ^ modelType, System::Web::ModelBinding::IModelBinder ^ modelBinder);
public void RegisterBinderForGenericType(Type modelType, System.Web.ModelBinding.IModelBinder modelBinder);
member this.RegisterBinderForGenericType : Type * System.Web.ModelBinding.IModelBinder -> unit
Public Sub RegisterBinderForGenericType (modelType As Type, modelBinder As IModelBinder)

パラメーター

modelType
Type

モデルの種類。

modelBinder
IModelBinder

モデル バインダー。

適用対象