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>

要移除的項目。

傳回

Boolean

如果已成功從字典移除 item,則為 true,如果沒有移除 item,或在字典中找不到,則為 false

實作

適用於

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

要移除的項目索引鍵。

傳回

Boolean

如果已成功移除項目,則為 true,如果沒有移除 key,或在字典中找不到,則為 false

實作

適用於