다음을 통해 공유


SPLimitedWebPartManager.CloseWebPart Method

Closes a dynamic Web Part in such a way that it is not rendered on the WebPartPage, but it can be reopened by calling OpenWebPart.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub CloseWebPart ( _
    webPart As WebPart _
)
'Usage
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart

instance.CloseWebPart(webPart)
public void CloseWebPart(
    WebPart webPart
)

Parameters

See Also

Reference

SPLimitedWebPartManager Class

SPLimitedWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace