ValueTuple<T1,T2,T3,T4,T5,T6>.ITuple.Item[Int32] 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定 ValueTuple
元素的值。
property System::Object ^ System::Runtime::CompilerServices::ITuple::Item[int] { System::Object ^ get(int index); };
C#
object? System.Runtime.CompilerServices.ITuple.Item[int index] { get; }
C#
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
指定 ValueTuple
元素的索引。
index
的范围可以介于 0 到 5 之间。
指定位置 ValueTuple
元素的值。
index
小于 0 或大于 5。
属性 ValueTuple<T1,T2,T3,T4,T5,T6>.ITuple.Item[] 是显式接口实现。 若要调用它,必须将 对象ValueTuple<T1,T2,T3,T4,T5,T6>ITuple强制转换或转换为接口对象。
产品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.1 |