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)
Available in Sandboxed Solutions: No
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.Int32The zero-based index at which value can be found.
value
Type: System.ObjectThe 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