Upraviť

Zdieľať cez


SimpleModelBinderProvider Constructors

Definition

Initializes a new instance of the SimpleModelBinderProvider class.

Overloads

SimpleModelBinderProvider(Type, Func<IModelBinder>)

Initializes a new instance of the SimpleModelBinderProvider class by using the specified model type and the model binder factory.

SimpleModelBinderProvider(Type, IModelBinder)

Initializes a new instance of the SimpleModelBinderProvider class by using the specified model type and the model binder.

SimpleModelBinderProvider(Type, Func<IModelBinder>)

Initializes a new instance of the SimpleModelBinderProvider class by using the specified model type and the model binder factory.

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))

Parameters

modelType
Type

The model type.

modelBinderFactory
Func<IModelBinder>

The model binder factory.

Applies to

SimpleModelBinderProvider(Type, IModelBinder)

Initializes a new instance of the SimpleModelBinderProvider class by using the specified model type and the model binder.

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)

Parameters

modelType
Type

The model type.

modelBinder
IModelBinder

The model binder.

Exceptions

The modelType or modelBinder parameter is null.

Applies to