SPWebPartManager.DisconnectWebPart Method
SharePoint 2010
Removes a Web Part or server control that is being closed or deleted from any connections it is participating in.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
Parameters
- webPart
- Type: System.Web.UI.WebControls.WebParts.WebPart
A Web Part control that is to be disconnected.