JavaDictionary<K,V>.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
| Name | Description |
|---|---|
| Remove(K) |
Attempts to remove a mapping from the Java map. |
| Remove(KeyValuePair<K,V>) |
Attempts to remove the mapping for the pair's key, without comparing its value. |
Remove(K)
Attempts to remove a mapping from the Java map.
public bool Remove(K key);
override this.Remove : 'K -> bool
Parameters
- key
- K
The key of the mapping to remove.
Returns
true if the key was present when checked before removal; otherwise, false.
Implements
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Remove(KeyValuePair<K,V>)
Attempts to remove the mapping for the pair's key, without comparing its value.
public bool Remove(System.Collections.Generic.KeyValuePair<K,V> pair);
override this.Remove : System.Collections.Generic.KeyValuePair<'K, 'V> -> bool
Parameters
- pair
- KeyValuePair<K,V>
The pair whose key identifies the mapping. Its value is not used.
Returns
true if the key was present when checked before removal; otherwise, false.
Implements
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.