SparseArray.RemoveAt(Int32) 方法

定义

删除指定索引处的映射。

[Android.Runtime.Register("removeAt", "(I)V", "GetRemoveAt_IHandler")]
public virtual void RemoveAt(int index);
[<Android.Runtime.Register("removeAt", "(I)V", "GetRemoveAt_IHandler")>]
abstract member RemoveAt : int -> unit
override this.RemoveAt : int -> unit

参数

index
Int32
属性

注解

删除指定索引处的映射。

对于范围0...size()-1之外的索引,该行为对于目标应用和早期应用android.os.Build.VERSION_CODES#P未定义,并且针对目标android.os.Build.VERSION_CODES#Q应用及更高版本引发该ArrayIndexOutOfBoundsException行为。

Java文档android.util.SparseArray.removeAt(int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于