SPWebPartConnectionCollection.OnInsert method

Performs additional custom processes before inserting a new element into the SPWebPartConnectionCollection instance.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Overrides Sub OnInsert ( _
    index As Integer, _
    value As Object _
)
'Usage
Dim index As Integer
Dim value As Object

Me.OnInsert(index, value)
protected override void OnInsert(
    int index,
    Object value
)

Parameters

  • index
    Type: System.Int32

    The zero-based index at which to insert value.

  • value
    Type: System.Object

    The new value of the element at index.

Remarks

This override will throw an InvalidOperationException if the SPWebPartConnectionCollection is read-only. The new element will not be inserted if the collection is read-only.

See also

Reference

SPWebPartConnectionCollection class

SPWebPartConnectionCollection members

Microsoft.SharePoint.WebPartPages namespace