Share via


MatchCollection.IList<Match>.Item[Int32] Properti

Definisi

Mendapatkan elemen pada indeks yang ditentukan.

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

Parameter

index
Int32

Indeks berbasis nol dari elemen yang akan didapatkan.

Nilai Properti

Elemen pada indeks yang ditentukan.

Penerapan

Keterangan

Properti ini menyediakan kemampuan untuk mengakses elemen tertentu dalam koleksi dengan menggunakan sintaks berikut: myCollection[index]. Bahasa C# menggunakan kata kunci ini untuk menentukan pengindeks alih-alih mengimplementasikan Item[] properti . Visual Basic mengimplementasikan Item[] sebagai properti default, yang menyediakan fungsionalitas pengindeksan yang sama.

Berlaku untuk