Tuple<T1,T2,T3,T4,T5>.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 到 4。

屬性值

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

實作

例外狀況

index 小於 0 或大於 4。

備註

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

適用於