다음을 통해 공유


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.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