SimpleModelBinderProvider Konstruktorok

Definíció

Inicializálja a SimpleModelBinderProvider osztály új példányát.

Túlterhelések

Name Description
SimpleModelBinderProvider(Type, Func<IModelBinder>)

Inicializálja az SimpleModelBinderProvider osztály új példányát a megadott modelltípus és a modellkötő-előállító használatával.

SimpleModelBinderProvider(Type, IModelBinder)

Inicializálja az osztály új példányát a SimpleModelBinderProvider megadott modelltípus és a modellkötő használatával.

SimpleModelBinderProvider(Type, Func<IModelBinder>)

Inicializálja az SimpleModelBinderProvider osztály új példányát a megadott modelltípus és a modellkötő-előállító használatával.

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

Paraméterek

modelType
Type

A modell típusa.

modelBinderFactory
Func<IModelBinder>

A modell kötőanyag-előállítója.

A következőre érvényes:

SimpleModelBinderProvider(Type, IModelBinder)

Inicializálja az osztály új példányát a SimpleModelBinderProvider megadott modelltípus és a modellkötő használatával.

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)

Paraméterek

modelType
Type

A modell típusa.

modelBinder
IModelBinder

A modell iratgyűjtője.

Kivételek

A modelType vagy modelBinder paraméter a következő null: .

A következőre érvényes: