This topic has not yet been rated - Rate this topic

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.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
protected override void DisconnectWebPart(
	WebPart webPart
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
A Web Part control that is to be disconnected.

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ