ModelBinderDictionary.Remove メソッド

定義

オーバーロード

Remove(KeyValuePair<Type,IModelBinder>)

モデル バインダー ディクショナリ内で最初に見つかった指定の要素を削除します。

Remove(Type)

指定したキーを持つ要素をモデル バインダー ディクショナリから削除します。

Remove(KeyValuePair<Type,IModelBinder>)

モデル バインダー ディクショナリ内で最初に見つかった指定の要素を削除します。

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

パラメーター

item
KeyValuePair<Type,IModelBinder>

オブジェクトから削除する ICollection<T> オブジェクト。

戻り値

モデル バインダーディクショナリから正常に削除された場合 item は true、それ以外の場合は false。 このメソッドは、モデル バインダー ディクショナリに が見つからない場合 item も false を返します。

実装

例外

ICollection<T> が読み取り専用です。

適用対象

Remove(Type)

指定したキーを持つ要素をモデル バインダー ディクショナリから削除します。

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 も false を返します。

実装

例外

IDictionary<TKey,TValue> が読み取り専用です。

key が null です。

適用対象