SPWebPartConnectionCollection.OnClear method

Performs additional custom processes when clearing the contents of the SPWebPartConnectionCollection instance.

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

Syntax

'Declaration
Protected Overrides Sub OnClear
'Usage

Me.OnClear()
protected override void OnClear()

Remarks

This override will throw an InvalidOperationException if the SPWebPartConnectionCollection is read-only. The content of the collection will not be cleared if the collection is read-only.

See also

Reference

SPWebPartConnectionCollection class

SPWebPartConnectionCollection members

Microsoft.SharePoint.WebPartPages namespace