ProviderConnectionPointCollection.IndexOf(ProviderConnectionPoint) メソッド

定義

コレクション内の特定の ProviderConnectionPoint オブジェクトの位置を返します。

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

パラメーター

connectionPoint
ProviderConnectionPoint

検索する ProviderConnectionPoint

返品

connectionPoint内の指定したProviderConnectionPointCollectionの 0 から始まるインデックス位置を示す整数。

注釈

IndexOf メソッドは、ページ上に複数のProviderConnectionPoint オブジェクトのインスタンスがあり、コードがコレクション内の他の接続ポイント オブジェクトの位置 (またはインデックス) を知る必要がある場合に便利です。

指定したプロバイダー接続ポイント オブジェクトがコレクション内に複数回出現する場合は、最初に出現する位置のインデックスが返されます。

適用対象

こちらもご覧ください