ModelBinderDictionary::Remove Method

 

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

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodRemove(KeyValuePair<Type^, IModelBinder^>)

Removes the first occurrence of the specified element from the model binder dictionary.

System_CAPS_pubmethodRemove(Type^)

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

Return to top

ModelBinderDictionary::Remove Method (KeyValuePair<Type^, IModelBinder^>)

Removes the first occurrence of the specified element from the model binder dictionary.

public:
virtual bool Remove(
	KeyValuePair<Type^, IModelBinder^> item
) sealed

Parameters

item
Type: System.Collections.Generic::KeyValuePair<Type^, IModelBinder^>

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

Return Value

Type: System::Boolean

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.

Exception Condition
NotSupportedException

The ICollection<T> object is read-only.

Return to top

ModelBinderDictionary::Remove Method (Type^)

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

public:
virtual bool Remove(
	Type^ key
) sealed

Parameters

key
Type: System::Type^

The key of the element to remove.

Return Value

Type: System::Boolean

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

Exception Condition
NotSupportedException

The IDictionary<TKey, TValue> object is read-only.

ArgumentNullException

key is null.

Return to top
Show: