CaptureCollection.IList<Capture>.Item[Int32] Właściwość

Definicja

Pobiera element wskazywany przez określony indeks.

property System::Text::RegularExpressions::Capture ^ System::Collections::Generic::IList<System::Text::RegularExpressions::Capture>::Item[int] { System::Text::RegularExpressions::Capture ^ get(int index); void set(int index, System::Text::RegularExpressions::Capture ^ value); };
System.Text.RegularExpressions.Capture System.Collections.Generic.IList<System.Text.RegularExpressions.Capture>.Item[int index] { get; set; }
member this.System.Collections.Generic.IList<System.Text.RegularExpressions.Capture>.Item(int) : System.Text.RegularExpressions.Capture with get, set
 Property Item(index As Integer) As Capture Implements IList(Of Capture).Item

Parametry

index
Int32

Indeks zerowy elementu do pobrania.

Wartość właściwości

Element pod określonym indeksem.

Implementuje

Uwagi

Ta właściwość umożliwia dostęp do określonego elementu w kolekcji przy użyciu następującej składni: myCollection[index]. Język C# używa tego słowa kluczowego do zdefiniowania indeksatorów zamiast implementowania Item[] właściwości . Język Visual Basic implementuje Item[] jako właściwość domyślną , która zapewnia tę samą funkcję indeksowania.

Dotyczy