SPLimitedWebPartManager.DeleteWebPart method
Exclui uma Web Part dinâmico da página de Web Parts.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Sub DeleteWebPart ( _
webPart As WebPart _
)
'Uso
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
instance.DeleteWebPart(webPart)
public void DeleteWebPart(
WebPart webPart
)
Parâmetros
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart