SPWebPartConnectionCollection.Add Method

Adds a SPWebPartConnection to the SPWebPartConnectionCollection.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function Add ( _
    value As SPWebPartConnection _
) As Integer
'Usage
Dim instance As SPWebPartConnectionCollection
Dim value As SPWebPartConnection
Dim returnValue As Integer

returnValue = instance.Add(value)
public int Add(
    SPWebPartConnection value
)

Parameters

Return Value

Type: System.Int32
The index at which the SPWebPartConnection has been added.

Remarks

The SPWebPartConnection will be added to the end of the SPWebPartConnectionCollection. To add a SPWebPartConnection at a specific location, use the - Insert method.

See Also

Reference

SPWebPartConnectionCollection Class

SPWebPartConnectionCollection Members

Microsoft.SharePoint.WebPartPages Namespace