Tuple<T1,T2,T3,T4,T5,T6,T7,TRest>.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 的範圍可以從 Item1 的 0,到小於 Tuple 的項目數目。

屬性值

Object

位在指定位置的 Tuple 項目值。

實作

例外狀況

index 小於 0。

-或- index 大於或等於 ITuple.Length

備註

屬性 Tuple<T1,T2,T3,T4,T5,T6,T7,TRest>.ITuple.Item[] 是明確的介面實作。 若要呼叫它,您必須轉換或將物件 ITuple 轉換成 Tuple<T1,T2,T3,T4,T5,T6,T7,TRest> 介面物件。

適用於