共用方式為


LongSparseArray.Put(Int64, Object) Method

Definition

Adds a mapping from the specified key to the specified value, replacing the previous mapping from the specified key if there was one.

[Android.Runtime.Register("put", "(JLjava/lang/Object;)V", "GetPut_JLjava_lang_Object_Handler")]
public virtual void Put (long key, Java.Lang.Object? value);
[<Android.Runtime.Register("put", "(JLjava/lang/Object;)V", "GetPut_JLjava_lang_Object_Handler")>]
abstract member Put : int64 * Java.Lang.Object -> unit
override this.Put : int64 * Java.Lang.Object -> unit

Parameters

key
Int64
value
Object
Attributes

Remarks

Adds a mapping from the specified key to the specified value, replacing the previous mapping from the specified key if there was one.

Java documentation for android.util.LongSparseArray.put(long, E).

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