WebPartDefinition.CloseWebPart Method

Closes the Web Part.

Namespace:  Microsoft.SharePoint.Client.WebParts
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Sub CloseWebPart
'Usage
Dim instance As WebPartDefinition

instance.CloseWebPart()
[RemoteAttribute]
public void CloseWebPart()

Remarks

If the Web Part is already closed, this method does nothing. If the current user does not have permissions to modify the Web Part, the server must ignore the call to this method.

OpenWebPart method opens the Web Part. If the Web Part is already open, this method does nothing. If the current user does not have permissions to modify the Web Part, the server must ignore the call to this method.

See Also

Reference

WebPartDefinition Class

WebPartDefinition Members

Microsoft.SharePoint.Client.WebParts Namespace