ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>.ITuple.Item[Int32] Właściwość

Definicja

Pobiera wartość określonego ValueTuple elementu.

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

Parametry

index
Int32

Wartość określonego ValueTuple elementu. index może wahać się od 0 do Item1 jednego mniejszego niż liczba elementów w elemecie ValueTuple.

Wartość właściwości

Wartość ValueTuple elementu na określonej pozycji.

Implementuje

Wyjątki

index wartość jest mniejsza niż 0.

-lub-

index jest większe niż lub równe ITuple.Length.

Uwagi

Właściwość ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest>.ITuple.Item[] jest jawną implementacją interfejsu. Aby go wywołać, należy rzutować lub przekonwertować ValueTuple<T1,T2,T3,T4,T5,T6,T7,TRest> obiekt na obiekt interfejsu ITuple .

Dotyczy