Properties.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.
Adds or replaces a local key-value entry.
[Android.Runtime.Register("put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetPut_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=35)]
public virtual 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", ApiSince=35)>]
abstract member Put : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
override this.Put : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
Parameters
- key
- Object
The non-null key to associate with the value.
- value
- Object
The non-null value to store.
Returns
The previous local value, or null if the key had no local entry.
- Attributes
Remarks
The key and value can be non-string objects. This operation changes only the local entries, not the default property list.