SPWebPartManager.DisconnectWebPart method

Removes a Web Part or server control that is being closed or deleted from any connections it is participating in.

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

Syntax

'Declaration
Protected Overrides Sub DisconnectWebPart ( _
    webPart As WebPart _
)
'Usage
Dim webPart As WebPart

Me.DisconnectWebPart(webPart)
protected override void DisconnectWebPart(
    WebPart webPart
)

Parameters

Remarks

This override disconnects all provider or consumer connections that are associated with this webPart.

See also

Reference

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace