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

傳回

Int32

如果找到,則是整個集合內 value 的第一個符合項目之索引 (此索引以零起始),否則為 -1。

備註

您可以使用這個方法來判斷集合中指定之物件的索引 WebPartConnection

適用於