共用方式為


IList.Get(Int32) Method

Definition

Returns the element at the specified position in this list.

[Android.Runtime.Register("get", "(I)Ljava/lang/Object;", "GetGet_IHandler:Java.Util.IListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? Get (int index);
[<Android.Runtime.Register("get", "(I)Ljava/lang/Object;", "GetGet_IHandler:Java.Util.IListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Get : int -> Java.Lang.Object

Parameters

index
Int32

index of the element to return

Returns

the element at the specified position in this list

Attributes

Exceptions

if location = size()

Remarks

Returns the element at the specified position in this list.

Java documentation for java.util.List.get(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