Tuple<T1,T2,T3>.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 到 2 之间。

属性值

Object

指定位置 Tuple 元素的值。

实现

例外

index 小于 0 或大于 2。

注解

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

适用于