WebPartConnectionCollection.Add(WebPartConnection) Metod

Definition

Lägger till en medlem i WebPartConnectionCollection samlingen.

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

Parametrar

value
WebPartConnection

Som WebPartConnection ska läggas till i samlingen.

Returer

Ett heltal som anger indexet där anslutningen ska läggas till i samlingen.

Kommentarer

Använd den här metoden för att lägga till ett WebPartConnection objekt i WebPartConnectionCollection samlingen. Objektet läggs till i slutet av samlingen. Om du vill lägga till ett objekt på en specifik plats i samlingen använder du Insert metoden .

Gäller för