SPLimitedWebPartManager.CloseWebPart method
Fecha uma Web Part dinâmicos de forma que ela não é processada na página de Web Parts, mas pode ser reaberto chamando OpenWebPart.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Sub CloseWebPart ( _
webPart As WebPart _
)
'Uso
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
instance.CloseWebPart(webPart)
public void CloseWebPart(
WebPart webPart
)
Parâmetros
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart