Language

SparseArray<E>.Append(Int32, E) 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("append", "(ILjava/lang/Object;)V", "")]
public virtual void Append(int key, E value);
[<Android.Runtime.Register("append", "(ILjava/lang/Object;)V", "")>]
override this.Append : int * 'E -> unit

Parameters

key
Int32

The integer key to associate with the value.

value
E

The managed value to associate with key.

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.

This managed method calls the Java put method, not the Java append method.

Android reference for android.util.SparseArray.put.

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