ModelBinderProviderCollection.RegisterBinderForGenericType Метод

Определение

Добавляет поставщик связывателя модели к коллекции для универсального типа.

Перегрузки

RegisterBinderForGenericType(Type, Func<Type[],IModelBinder>)

Добавляет связыватель модели к коллекции для универсального типа с помощью указанного типа модели и фабрики связывателя модели.

RegisterBinderForGenericType(Type, Type)

Добавляет поставщик связывателя модели к коллекции для универсального типа с помощью указанного типа модели и типа связывателя модели.

RegisterBinderForGenericType(Type, IModelBinder)

Добавляет поставщик связывателя модели к коллекции для универсального типа с помощью указанного типа модели и связывателя модели.

RegisterBinderForGenericType(Type, Func<Type[],IModelBinder>)

Добавляет связыватель модели к коллекции для универсального типа с помощью указанного типа модели и фабрики связывателя модели.

public:
 void RegisterBinderForGenericType(Type ^ modelType, Func<cli::array <Type ^> ^, System::Web::ModelBinding::IModelBinder ^> ^ modelBinderFactory);
public void RegisterBinderForGenericType (Type modelType, Func<Type[],System.Web.ModelBinding.IModelBinder> modelBinderFactory);
member this.RegisterBinderForGenericType : Type * Func<Type[], System.Web.ModelBinding.IModelBinder> -> unit
Public Sub RegisterBinderForGenericType (modelType As Type, modelBinderFactory As Func(Of Type(), IModelBinder))

Параметры

modelType
Type

Тип модели.

modelBinderFactory
Func<Type[],IModelBinder>

Фабрика связывателя модели.

Применяется к

RegisterBinderForGenericType(Type, Type)

Добавляет поставщик связывателя модели к коллекции для универсального типа с помощью указанного типа модели и типа связывателя модели.

public:
 void RegisterBinderForGenericType(Type ^ modelType, Type ^ modelBinderType);
public void RegisterBinderForGenericType (Type modelType, Type modelBinderType);
member this.RegisterBinderForGenericType : Type * Type -> unit
Public Sub RegisterBinderForGenericType (modelType As Type, modelBinderType As Type)

Параметры

modelType
Type

Тип модели.

modelBinderType
Type

Тип связывателя модели.

Применяется к

RegisterBinderForGenericType(Type, IModelBinder)

Добавляет поставщик связывателя модели к коллекции для универсального типа с помощью указанного типа модели и связывателя модели.

public:
 void RegisterBinderForGenericType(Type ^ modelType, System::Web::ModelBinding::IModelBinder ^ modelBinder);
public void RegisterBinderForGenericType (Type modelType, System.Web.ModelBinding.IModelBinder modelBinder);
member this.RegisterBinderForGenericType : Type * System.Web.ModelBinding.IModelBinder -> unit
Public Sub RegisterBinderForGenericType (modelType As Type, modelBinder As IModelBinder)

Параметры

modelType
Type

Тип модели.

modelBinder
IModelBinder

Связыватель модели.

Применяется к