ModelBinderDictionary.Remove Method

Definition

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

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

Parameters

item
KeyValuePair<Type,IModelBinder>

The item to remove.

Returns

true if item was successfully removed from the dictionary; false if item was not removed or was not found in the dictionary.

Implements

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

Parameters

key
Type

The key of the item to remove.

Returns

true if the element was successfully removed; false if key was note removed or was not found in the dictionary.

Implements

Applies to