OneOrMany<T>.Item[Int32] 属性

定义

获取集合中指定索引处的元素。

public:
 property T default[int] { T get(int index); };
public T this[int index] { get; }
member this.Item(int) : 'T
Default Public ReadOnly Property Item(index As Integer) As T

参数

index
Int32

所请求项的从零开始的索引。

属性值

T

集合中位于该位置的项 index

例外

index为负或超出集合的末尾。

适用于