ModelBinderDictionary.Remove 方法

定义

从模型绑定器字典中删除具有指定键的元素。

重载

名称 说明
Remove(KeyValuePair<Type,IModelBinder>)

从模型绑定器字典中删除指定元素的第一个匹配项。

Remove(Type)

从模型绑定器字典中删除具有指定键的元素。

Remove(KeyValuePair<Type,IModelBinder>)

从模型绑定器字典中删除指定元素的第一个匹配项。

public:
 virtual bool Remove(System::Collections::Generic::KeyValuePair<Type ^, System::Web::ModelBinding::IModelBinder ^> item);
public bool Remove(System.Collections.Generic.KeyValuePair<Type,System.Web.ModelBinding.IModelBinder> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<Type, System.Web.ModelBinding.IModelBinder> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<Type, System.Web.ModelBinding.IModelBinder> -> bool
Public Function Remove (item As KeyValuePair(Of Type, IModelBinder)) As Boolean

参数

item
KeyValuePair<Type,IModelBinder>

要删除的项。

返回

如果 已成功从字典中删除,则为 >如果未 删除或未在字典中找到。

实现

适用于

Remove(Type)

从模型绑定器字典中删除具有指定键的元素。

public:
 virtual bool Remove(Type ^ key);
public bool Remove(Type key);
abstract member Remove : Type -> bool
override this.Remove : Type -> bool
Public Function Remove (key As Type) As Boolean

参数

key
Type

要删除的项的键。

返回

如果已成功删除元素,则为 ; 如果 已删除或未在字典中找到,则为

实现

适用于