WebPartConnectionCollection.Add(WebPartConnection) 方法

定義

將成員加入至 WebPartConnectionCollection 集合。

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

參數

value
WebPartConnection

要加入至集合的 WebPartConnection

傳回

Int32

整數,表示連接將加入至集合的索引位置。

備註

使用這個方法可將 WebPartConnection 物件加入至 WebPartConnectionCollection 集合。 物件會加入至集合結尾。 若要在集合中的特定位置加入物件,請使用 Insert 方法。

適用於