SimpleModelBinderProvider 构造函数

定义

初始化 SimpleModelBinderProvider 类的新实例。

重载

名称 说明
SimpleModelBinderProvider(Type, Func<IModelBinder>)

使用指定的模型类型和模型绑定器工厂初始化类的新实例 SimpleModelBinderProvider

SimpleModelBinderProvider(Type, IModelBinder)

使用指定的模型类型和模型绑定器初始化类的新实例 SimpleModelBinderProvider

SimpleModelBinderProvider(Type, Func<IModelBinder>)

使用指定的模型类型和模型绑定器工厂初始化类的新实例 SimpleModelBinderProvider

public:
 SimpleModelBinderProvider(Type ^ modelType, Func<System::Web::ModelBinding::IModelBinder ^> ^ modelBinderFactory);
public SimpleModelBinderProvider(Type modelType, Func<System.Web.ModelBinding.IModelBinder> modelBinderFactory);
new System.Web.ModelBinding.SimpleModelBinderProvider : Type * Func<System.Web.ModelBinding.IModelBinder> -> System.Web.ModelBinding.SimpleModelBinderProvider
Public Sub New (modelType As Type, modelBinderFactory As Func(Of IModelBinder))

参数

modelType
Type

模型类型。

modelBinderFactory
Func<IModelBinder>

模型绑定器工厂。

适用于

SimpleModelBinderProvider(Type, IModelBinder)

使用指定的模型类型和模型绑定器初始化类的新实例 SimpleModelBinderProvider

public:
 SimpleModelBinderProvider(Type ^ modelType, System::Web::ModelBinding::IModelBinder ^ modelBinder);
public SimpleModelBinderProvider(Type modelType, System.Web.ModelBinding.IModelBinder modelBinder);
new System.Web.ModelBinding.SimpleModelBinderProvider : Type * System.Web.ModelBinding.IModelBinder -> System.Web.ModelBinding.SimpleModelBinderProvider
Public Sub New (modelType As Type, modelBinder As IModelBinder)

参数

modelType
Type

模型类型。

modelBinder
IModelBinder

模型绑定器。

例外

modelTypemodelBinder参数为 null.

适用于