GenericModelBinderProvider 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 GenericModelBinderProvider 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| GenericModelBinderProvider(Type, Func<Type[],IModelBinder>) |
透過指定的模型類型與模型綁定器工廠初始化該類別的新 GenericModelBinderProvider 實例。 |
| GenericModelBinderProvider(Type, Type) |
透過使用指定的模型類型與模型綁定器類型初始化該類別的新實例 GenericModelBinderProvider 。 |
| GenericModelBinderProvider(Type, IModelBinder) |
透過使用指定的模型類型與模型綁定器初始化新的 GenericModelBinderProvider 實例。 |
GenericModelBinderProvider(Type, Func<Type[],IModelBinder>)
透過指定的模型類型與模型綁定器工廠初始化該類別的新 GenericModelBinderProvider 實例。
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))
參數
- modelType
- Type
型號類型。
- modelBinderFactory
- Func<Type[],IModelBinder>
模型活頁機工廠。
例外狀況
modelType 或 modelBinderFactory 為 null。
適用於
GenericModelBinderProvider(Type, Type)
透過使用指定的模型類型與模型綁定器類型初始化該類別的新實例 GenericModelBinderProvider 。
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)
參數
- modelType
- Type
型號類型。
- modelBinderType
- Type
模型活頁夾類型。
例外狀況
modelType 或 modelBinderType 為 null。
適用於
GenericModelBinderProvider(Type, IModelBinder)
透過使用指定的模型類型與模型綁定器初始化新的 GenericModelBinderProvider 實例。
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)
參數
- modelType
- Type
型號類型。
- modelBinder
- IModelBinder
模型活頁夾。
例外狀況
modelType 或 modelBinder 為 null。