HashMap.Remove(Object, Object) 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 the mapping only if the specified key maps to the specified value.
[Android.Runtime.Register("remove", "(Ljava/lang/Object;Ljava/lang/Object;)Z", "GetRemove_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=26)]
public virtual bool Remove(Java.Lang.Object? key, Java.Lang.Object? value);
[<Android.Runtime.Register("remove", "(Ljava/lang/Object;Ljava/lang/Object;)Z", "GetRemove_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=26)>]
override this.Remove : Java.Lang.Object * Java.Lang.Object -> bool
Parameters
- key
- Object
key whose mapping is to be removed from the map
- value
- Object
The value that the key must currently map to for removal to occur.
Returns
true if the mapping was removed; otherwise, false.
Implements
- Attributes
Remarks
Java documentation for java.util.HashMap.remove(java.lang.Object, java.lang.Object).
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.