SPLimitedWebPartManager.DeleteWebPart Method
Deletes a dynamic Web Part from the WebPartPage.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub DeleteWebPart ( _
webPart As WebPart _
)
'Usage
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
instance.DeleteWebPart(webPart)
public void DeleteWebPart(
WebPart webPart
)
Parameters
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart