ModelBinderProviderCollection.RegisterBinderForGenericType メソッド
定義
ジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。Adds a model binder provider to the collection for a generic type.
オーバーロード
RegisterBinderForGenericType(Type, Func<Type[],IModelBinder>) |
指定されたモデルの型とモデル バインダー ファクトリを使用してジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。Adds a model binder to the collection for a generic type by using the specified model type and model binder factory. |
RegisterBinderForGenericType(Type, Type) |
指定されたモデルの型とモデル バインダーの型を使用してジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。Adds a model binder provider to the collection for a generic type by using the specified model type and model binder type. |
RegisterBinderForGenericType(Type, IModelBinder) |
指定されたモデルの型とモデル バインダーを使用してジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。Adds a model binder provider to the collection for a generic type by using the specified model type and model binder. |
RegisterBinderForGenericType(Type, Func<Type[],IModelBinder>)
指定されたモデルの型とモデル バインダー ファクトリを使用してジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。Adds a model binder to the collection for a generic type by using the specified model type and model binder factory.
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
モデル型。The model type.
- modelBinderFactory
- Func<Type[],IModelBinder>
モデル バインダー ファクトリ。The model binder factory.
RegisterBinderForGenericType(Type, Type)
指定されたモデルの型とモデル バインダーの型を使用してジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。Adds a model binder provider to the collection for a generic type by using the specified model type and model binder 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
モデル型。The model type.
- modelBinderType
- Type
モデル バインダーの種類。The model binder type.
RegisterBinderForGenericType(Type, IModelBinder)
指定されたモデルの型とモデル バインダーを使用してジェネリック型のコレクションにモデル バインダー プロバイダーを追加します。Adds a model binder provider to the collection for a generic type by using the specified model type and model binder.
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
モデル型。The model type.
- modelBinder
- IModelBinder
モデル バインダー。The model binder.