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

傳回

整數,表示 ProviderConnectionPointCollection 之中特定 connectionPoint 的以零起始的索引位置。

備註

IndexOf方法在頁面上有多個物件的實例 ProviderConnectionPoint 時很有用,而您的程式碼必須知道相對於集合中其他連接點物件的位置 (或索引) 。

如果集合中出現指定的提供者連接點物件多次,則會傳回第一次出現的索引。

適用於

另請參閱