Tuple<T1,T2,T3>.ITuple.Item[Int32] Tuple<T1,T2,T3>.ITuple.Item[Int32] Tuple<T1,T2,T3>.ITuple.Item[Int32] Property

定义

获取指定 Tuple 元素的值。Gets the value of the specified Tuple element.

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

参数

index
Int32 Int32 Int32

指定 Tuple 元素的索引。The index of the specified Tuple element. index 的范围可以介于 0 到 2 之间。index can range from 0 to 2.

属性值

指定位置 Tuple 元素的值。The value of the Tuple element at the specified position.

实现

异常

index 小于 0 或大于 2。index is less than 0 or greater than 2.

注解

Tuple<T1,T2,T3>.ITuple.Item[Int32]属性是显式接口实现。The Tuple<T1,T2,T3>.ITuple.Item[Int32] property is an explicit interface implementation. 若要调用该Tuple<T1,T2,T3>对象, 必须将对象强制转换或转换ITuple为接口对象。To call it, you must cast or convert the Tuple<T1,T2,T3> object to an ITuple interface object.

适用于