다음을 통해 공유


IMutableKeyValueStore.Put(String, Byte[]) Method

Definition

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

Byte[]

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.

Java documentation for android.adservices.ondevicepersonalization.MutableKeyValueStore.put(java.lang.String, byte[]).

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