Tuple<T1>.ITuple.Item[Int32] 属性
定义
获取 Tuple 元素的值。Gets the value of the 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; }
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 元素的索引。The index of the Tuple element. index 必须为 0。index must be 0.
属性值
Tuple 元素的值。The value of the Tuple element.
实现
例外
index 小于 0 或大于 0。index is less than 0 or greater than 0.
注解
Tuple<T1>.ITuple.Item[]属性是显式接口实现。The Tuple<T1>.ITuple.Item[] property is an explicit interface implementation. 若要调用该对象,必须将对象强制转换或转换 Tuple<T1> 为 ITuple 接口对象。To call it, you must cast or convert the Tuple<T1> object to an ITuple interface object.