ValueProviderDictionary.Remove Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Remove(KeyValuePair<String,ValueProviderResult>) |
Removes the first occurrence of the specified item from the collection of value providers. |
| Remove(String) |
Removes the element that has the specified key from the collection of value providers. |
Remove(KeyValuePair<String,ValueProviderResult>)
Removes the first occurrence of the specified item from the collection of value providers.
public bool Remove(System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<string, System.Web.Mvc.ValueProviderResult> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<string, System.Web.Mvc.ValueProviderResult> -> bool
Public Function Remove (item As KeyValuePair(Of String, ValueProviderResult)) As Boolean
Parameters
The object to remove from the ICollection<T> instance.
Returns
true if item was successfully removed from the collection; otherwise, false. This method also returns false if item is not found in the collection.
Implements
Exceptions
The ICollection<T> object is read-only.
Applies to
Remove(String)
Removes the element that has the specified key from the collection of value providers.
public bool Remove(string key);
abstract member Remove : string -> bool
override this.Remove : string -> bool
Public Function Remove (key As String) As Boolean
Parameters
- key
- String
The key of the element to remove.
Returns
true if the element was successfully removed; otherwise, false. This method also returns false if key was not found in the collection.
Implements
Exceptions
The IDictionary<TKey,TValue> object is read-only.
key is null.