ModelBinderProviderExtensions.RemoveType 方法

定义

重载

RemoveType(IList<IModelBinderProvider>, Type)

删除指定类型的所有模型绑定程序提供程序。

RemoveType<TModelBinderProvider>(IList<IModelBinderProvider>)

删除指定类型的所有模型绑定程序提供程序。

RemoveType(IList<IModelBinderProvider>, Type)

Source:
ModelBinderProviderExtensions.cs
Source:
ModelBinderProviderExtensions.cs

删除指定类型的所有模型绑定程序提供程序。

public:
[System::Runtime::CompilerServices::Extension]
 static void RemoveType(System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinderProvider ^> ^ list, Type ^ type);
public static void RemoveType (this System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider> list, Type type);
static member RemoveType : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider> * Type -> unit
<Extension()>
Public Sub RemoveType (list As IList(Of IModelBinderProvider), type As Type)

参数

type
Type

要删除的类型。

适用于

RemoveType<TModelBinderProvider>(IList<IModelBinderProvider>)

Source:
ModelBinderProviderExtensions.cs
Source:
ModelBinderProviderExtensions.cs

删除指定类型的所有模型绑定程序提供程序。

public:
generic <typename TModelBinderProvider>
 where TModelBinderProvider : Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinderProvider[System::Runtime::CompilerServices::Extension]
 static void RemoveType(System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinderProvider ^> ^ list);
public static void RemoveType<TModelBinderProvider> (this System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider> list) where TModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider;
static member RemoveType : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider> -> unit (requires 'ModelBinderProvider :> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider)
<Extension()>
Public Sub RemoveType(Of TModelBinderProvider As IModelBinderProvider) (list As IList(Of IModelBinderProvider))

类型参数

TModelBinderProvider

要删除的类型。

参数

适用于