Tuple<T1,T2,T3,T4>.ITuple.Item[Int32] 属性

定义

获取指定 Tuple 元素的值。

property System::Object ^ System::Runtime::CompilerServices::ITuple::Item[int] { System::Object ^ get(int index); };
object? System.Runtime.CompilerServices.ITuple.Item[int index] { get; }
object System.Runtime.CompilerServices.ITuple.Item[int index] { get; }
member this.System.Runtime.CompilerServices.ITuple.Item(int) : obj
 ReadOnly Property Item(index As Integer) As Object Implements ITuple.Item

参数

index
Int32

指定 Tuple 元素的索引。 index 的范围可以介于 0 到 3 之间。

属性值

指定位置 Tuple 元素的值。

实现

例外

index 小于 0 或大于 3。

注解

属性 Tuple<T1,T2,T3,T4>.ITuple.Item[] 是显式接口实现。 若要调用它,必须将 对象Tuple<T1,T2,T3,T4>ITuple强制转换或转换为接口对象。

适用于