ConsumerConnectionPointCollection.IndexOf(ConsumerConnectionPoint) メソッド

定義

コレクション内の指定した ConsumerConnectionPoint オブジェクトのインデックスを確認します。

public:
 int IndexOf(System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ connectionPoint);
public int IndexOf (System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint connectionPoint);
member this.IndexOf : System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint -> int
Public Function IndexOf (connectionPoint As ConsumerConnectionPoint) As Integer

パラメーター

connectionPoint
ConsumerConnectionPoint

検索する ConsumerConnectionPoint

戻り値

現在の ConsumerConnectionPointCollection 内で connectionPoint が見つかった場合は、最初に見つかった位置の 0 から始まるインデックス番号。それ以外の場合は -1。

注釈

指定したコンシューマー接続ポイント項目がコレクション内に複数回出現する場合は、最初に出現した項目のインデックスが返されます。

適用対象