ModelBinderDictionary.Remove 方法

定義

從模型綁定器字典中移除具有指定金鑰的元素。

多載

名稱 Description
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>

要移除的物品。

傳回

true 如果 item 成功從字典中移除; false 如果 item 未被移除或未在字典中找到。

實作

適用於

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

要移除物品的鑰匙。

傳回

true 若元素成功移除; false 如果 key 註解已移除或未在字典中找到。

實作

適用於