語言

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要找到。

傳回

若找到,則為 首次出現connectionPointConsumerConnectionPointCollection的零基指數;否則為 -1。

備註

若指定的消費者連接點項目在集合中多次出現,則會回傳首次出現的索引。

適用於