ProviderConnectionPointCollection.IndexOf(ProviderConnectionPoint) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mengembalikan posisi objek tertentu ProviderConnectionPoint dalam koleksi.
public:
int IndexOf(System::Web::UI::WebControls::WebParts::ProviderConnectionPoint ^ connectionPoint);
public int IndexOf (System.Web.UI.WebControls.WebParts.ProviderConnectionPoint connectionPoint);
member this.IndexOf : System.Web.UI.WebControls.WebParts.ProviderConnectionPoint -> int
Public Function IndexOf (connectionPoint As ProviderConnectionPoint) As Integer
Parameter
- connectionPoint
- ProviderConnectionPoint
untuk ProviderConnectionPoint menemukan.
Mengembalikan
Bilangan bulat yang menunjukkan posisi indeks berbasis nol dari yang ditentukan connectionPoint
dalam ProviderConnectionPointCollection.
Keterangan
Metode IndexOf ini berguna ketika ada beberapa instans ProviderConnectionPoint objek di halaman, dan kode Anda perlu mengetahui lokasi (atau indeks) dari satu objek titik koneksi relatif terhadap yang lain dalam koleksi.
Jika objek titik koneksi penyedia yang ditentukan muncul beberapa kali dalam koleksi, indeks kemunculan pertama dikembalikan.