Bearbeiten

Freigeben über


GenericModelBinderProvider Constructors

Definition

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