SPWebPartConnectionCollection.OnSet Method

Performs additional custom processes before setting a value in the SPWebPartConnectionCollection instance.

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

Syntax

'Declaration
Protected Overrides Sub OnSet ( _
    index As Integer, _
    oldValue As Object, _
    newValue As Object _
)
'Usage
Dim index As Integer
Dim oldValue As Object
Dim newValue As Object

Me.OnSet(index, oldValue, newValue)
protected override void OnSet(
    int index,
    Object oldValue,
    Object newValue
)

Parameters

  • index
    Type: System.Int32

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

  • oldValue
    Type: System.Object

    The value to replace with newValue.

  • newValue
    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 value will not be set if the collection is read-only.

See Also

Reference

SPWebPartConnectionCollection Class

SPWebPartConnectionCollection Members

Microsoft.SharePoint.WebPartPages Namespace