IMutableKeyValueStore.Put(String, Byte[]) 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.
Associates the specified value with the specified key.
[Android.Runtime.Register("put", "(Ljava/lang/String;[B)[B", "GetPut_Ljava_lang_String_arrayBHandler:Android.AdServices.OnDevicePersonalization.IMutableKeyValueStoreInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public byte[]? Put (string key, byte[] value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;[B)[B", "GetPut_Ljava_lang_String_arrayBHandler:Android.AdServices.OnDevicePersonalization.IMutableKeyValueStoreInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member Put : string * byte[] -> byte[]
Parameters
- key
- String
key with which the specified value is to be associated
- value
- Byte[]
value to be associated with the specified key
Returns
the previous value associated with key, or null if there was no mapping for key.
- Attributes
Remarks
Associates the specified value with the specified key. If a value already exists for that key, the old value is replaced.
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.