Bagikan melalui


ProviderConnectionPointCollection.IndexOf(ProviderConnectionPoint) Metode

Definisi

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.

Berlaku untuk

Lihat juga