語言

WebPartConnectionCollection.IndexOf(WebPartConnection) 方法

定義

決定集合中指定 WebPartConnection 物件的索引。

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

參數

value
WebPartConnection

該 WebPartConnection 來決定 的指數。

傳回

若找到, value 則為集合中首次出現的零基索引;否則為 -1。

備註

使用此方法來確定集合中指定 WebPartConnection 物件的索引。

適用於