共用方式為


SparseIntArray.Put(Int32, Int32) 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", "(II)V", "GetPut_IIHandler")]
public virtual void Put (int key, int value);
[<Android.Runtime.Register("put", "(II)V", "GetPut_IIHandler")>]
abstract member Put : int * int -> unit
override this.Put : int * int -> unit

Parameters

key
Int32
value
Int32
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.SparseIntArray.put(int, int).

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