GenericModelBinderProvider Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the GenericModelBinderProvider class.
Overloads
GenericModelBinderProvider(Type, Func<Type[],IModelBinder>) |
Initializes a new instance of the GenericModelBinderProvider class by using the specified model type and model binder factory. |
GenericModelBinderProvider(Type, Type) |
Initializes a new instance of the GenericModelBinderProvider class by using the specified model type and model binder type. |
GenericModelBinderProvider(Type, IModelBinder) |
Initializes a new instance of the GenericModelBinderProvider by using the specified model type and model binder. |
GenericModelBinderProvider(Type, Func<Type[],IModelBinder>)
Initializes a new instance of the GenericModelBinderProvider class by using the specified model type and model binder factory.
public:
GenericModelBinderProvider(Type ^ modelType, Func<cli::array <Type ^> ^, System::Web::ModelBinding::IModelBinder ^> ^ modelBinderFactory);
public GenericModelBinderProvider (Type modelType, Func<Type[],System.Web.ModelBinding.IModelBinder> modelBinderFactory);
new System.Web.ModelBinding.GenericModelBinderProvider : Type * Func<Type[], System.Web.ModelBinding.IModelBinder> -> System.Web.ModelBinding.GenericModelBinderProvider
Public Sub New (modelType As Type, modelBinderFactory As Func(Of Type(), IModelBinder))
Parameters
- modelType
- Type
The model type.
- modelBinderFactory
- Func<Type[],IModelBinder>
The model binder factory.
Exceptions
modelType
or modelBinderFactory
is null
.
Applies to
GenericModelBinderProvider(Type, Type)
Initializes a new instance of the GenericModelBinderProvider class by using the specified model type and model binder type.
public:
GenericModelBinderProvider(Type ^ modelType, Type ^ modelBinderType);
public GenericModelBinderProvider (Type modelType, Type modelBinderType);
new System.Web.ModelBinding.GenericModelBinderProvider : Type * Type -> System.Web.ModelBinding.GenericModelBinderProvider
Public Sub New (modelType As Type, modelBinderType As Type)
Parameters
- modelType
- Type
The model type.
- modelBinderType
- Type
The model binder type.
Exceptions
modelType
or modelBinderType
is null
.
Applies to
GenericModelBinderProvider(Type, IModelBinder)
Initializes a new instance of the GenericModelBinderProvider by using the specified model type and model binder.
public:
GenericModelBinderProvider(Type ^ modelType, System::Web::ModelBinding::IModelBinder ^ modelBinder);
public GenericModelBinderProvider (Type modelType, System.Web.ModelBinding.IModelBinder modelBinder);
new System.Web.ModelBinding.GenericModelBinderProvider : Type * System.Web.ModelBinding.IModelBinder -> System.Web.ModelBinding.GenericModelBinderProvider
Public Sub New (modelType As Type, modelBinder As IModelBinder)
Parameters
- modelType
- Type
The model type.
- modelBinder
- IModelBinder
The model binder.
Exceptions
modelType
or modelBinder
is null
.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應