Dictionary.Put(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.
Maps the specified <code>key</code> to the specified <code>value</code> in this dictionary.
[Android.Runtime.Register("put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetPut_Ljava_lang_Object_Ljava_lang_Object_Handler")]
public abstract Java.Lang.Object? Put (Java.Lang.Object? key, Java.Lang.Object? value);
[<Android.Runtime.Register("put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetPut_Ljava_lang_Object_Ljava_lang_Object_Handler")>]
abstract member Put : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
Parameters
- key
- Object
the hashtable key.
- value
- Object
the value.
Returns
the previous value to which the <code>key</code> was mapped in this dictionary, or <code>null</code> if the key did not have a previous mapping.
- Attributes
Remarks
Java documentation for java.util.Dictionary.put(K, V).
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.