This topic has not yet been rated - Rate this topic

SPWebPartManager.CopyWebPart Method

SharePoint 2010

Returns the WebPart passed in without creating a copy.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
protected override WebPart CopyWebPart(
	WebPart webPart
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
The Web Part or server control.

Return Value

Type: System.Web.UI.WebControls.WebParts.WebPart
A Web Part to be added to a page.

This override returns the webPart passed into the procedure without creating a copy.

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