ImmutableArray<T>.IList<T>.Item[Int32] 属性

定义

获取或设置位于只读列表中指定索引处的元素。Gets or sets the element at the specified index in the read-only list.

property T System::Collections::Generic::IList<T>::Item[int] { T get(int index); void set(int index, T value); };
T System.Collections.Generic.IList<T>.Item[int index] { get; set; }
 Property Item(index As Integer) As T Implements IList(Of T).Item

参数

index
Int32

要获取的元素的索引(索引从零开始)。The zero-based index of the element to get.

属性值

T

在只读列表中指定索引处的元素。The element at the specified index in the read-only list.

实现

异常

始终从资源库引发。Always thrown from the setter.

IsDefault 属性返回 true 时引发。Thrown if the IsDefault property returns true.

适用于