Share via


SPWebPartConnectionCollection.OnRemove method

Performs additional custom processes when removing an element from the SPWebPartConnectionCollection instance.

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

Syntax

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

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

Parameters

  • index
    Type: System.Int32

    The zero-based index at which value can be found.

  • value
    Type: System.Object

    The value of the element to remove from index.

Remarks

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

See also

Reference

SPWebPartConnectionCollection class

SPWebPartConnectionCollection members

Microsoft.SharePoint.WebPartPages namespace