ValueTuple<T1>.ITuple.Length 屬性

定義

取得 ValueTuple 中的項目數目。Gets the number of elements in the ValueTuple.

property int System::Runtime::CompilerServices::ITuple::Length { int get(); };
int System.Runtime.CompilerServices.ITuple.Length { get; }
member this.System.Runtime.CompilerServices.ITuple.Length : int
 ReadOnly Property Length As Integer Implements ITuple.Length

屬性值

1,ValueTuple<T1> 物件中的項目數目。1, the number of elements in a ValueTuple<T1> object.

實作

備註

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

適用於