Dictionary.Remove(Object) Method

Definition

Removes the key (and its corresponding value) from this dictionary.

[Android.Runtime.Register("remove", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetRemove_Ljava_lang_Object_Handler")]
public abstract Java.Lang.Object? Remove (Java.Lang.Object? key);
[<Android.Runtime.Register("remove", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetRemove_Ljava_lang_Object_Handler")>]
abstract member Remove : Java.Lang.Object -> Java.Lang.Object

Parameters

key
Object

the key that needs to be removed.

Returns

the value to which the key had been mapped in this dictionary, or null if the key did not have a mapping.

Attributes

Remarks

Removes the key (and its corresponding value) from this dictionary. This method does nothing if the key is not in this dictionary.

Java documentation for java.util.Dictionary.remove(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.

Applies to

See also