ValueTuple<T1,T2,T3,T4,T5,T6>.ITuple.Item[Int32] 屬性

定義

取得指定的 ValueTuple 項目值。Gets the value of the specified ValueTuple 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

指定的 ValueTuple 項目索引。The index of the specified ValueTuple element. index 的範圍可以從 0 到 5。index can range from 0 to 5.

屬性值

位在指定位置的 ValueTuple 項目值。The value of the ValueTuple element at the specified position.

實作

例外狀況

index 小於 0 或大於 5。index is less than 0 or greater than 5.

備註

ValueTuple<T1,T2,T3,T4,T5,T6>.ITuple.Item[Int32]屬性是明確的介面執行。The ValueTuple<T1,T2,T3,T4,T5,T6>.ITuple.Item[Int32] property is an explicit interface implementation. 若要呼叫它, 您必須將ValueTuple<T1,T2,T3,T4,T5,T6>物件轉換或轉換ITuple為介面物件。To call it, you must cast or convert the ValueTuple<T1,T2,T3,T4,T5,T6> object to an ITuple interface object.

適用於