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 第一次出現之以零起始的索引,否則為 -1。

備註

如果集合中出現指定的取用者連接點專案多次,則會傳回第一次出現的索引。

適用於