ModelBinderDictionary.Remove 方法

定义

从模型联编程序字典中移除具有指定键的元素。Removes the element that has the specified key from the model binder dictionary.

重载

Remove(KeyValuePair<Type,IModelBinder>)

从模型联编程序字典中移除指定元素的第一个匹配项。Removes the first occurrence of the specified element from the model binder dictionary.

Remove(Type)

从模型联编程序字典中移除具有指定键的元素。Removes the element that has the specified key from the model binder dictionary.

Remove(KeyValuePair<Type,IModelBinder>)

从模型联编程序字典中移除指定元素的第一个匹配项。Removes the first occurrence of the specified element from the model binder dictionary.

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>

要移除的项。The item to remove.

返回

如果从字典成功移除 item,则为 true;如果 item 在字典未移除或未找到,则为 falsetrue if item was successfully removed from the dictionary; false if item was not removed or was not found in the dictionary.

实现

Remove(Type)

从模型联编程序字典中移除具有指定键的元素。Removes the element that has the specified key from the model binder dictionary.

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

要移除的项的键。The key of the item to remove.

返回

如果从字典成功移除该元素,则为 true;如果在字典未移除或未找到 key,则为 falsetrue if the element was successfully removed; false if key was note removed or was not found in the dictionary.

实现

适用于