Dictionary.ICollectionValuePair>.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.
Removes a key and value from the dictionary.
virtual bool System.Collections.Generic.ICollection>.Remove(System::Collections::Generic::KeyValuePair keyValuePair) = System::Collections::Generic::ICollection>::Remove;
bool ICollection>.Remove(System.Collections.Generic.KeyValuePair keyValuePair);
abstract member System.Collections.Generic.ICollection>.Remove : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
override this.System.Collections.Generic.ICollection>.Remove : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Function Remove (keyValuePair As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Remove
Parameters
- keyValuePair
-
KeyValuePair
The KeyValuePair
Returns
true if the key and value represented by keyValuePair is successfully found and removed; otherwise, false. This method returns false if keyValuePair is not found in the ICollection