ModelBinderDictionary.Remove Method

Definition

Overloads

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 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

Parameters

item
KeyValuePair<Type,IModelBinder>

The object to remove from the ICollection<T> object.

Returns

true if item was successfully removed from the model binder dictionary; otherwise, false. This method also returns false if item is not found in the model binder dictionary.

Implements

Exceptions

The ICollection<T> object is read-only.

Applies to

Remove(Type)

Removes the element that has the specified key from the model binder dictionary.

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

Parameters

key
Type

The key of the element to remove.

Returns

true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the model binder dictionary.

Implements

Exceptions

key is null.

Applies to