WebPartDefinition.CloseWebPart method

Closes the Web Part.

Namespace:  Microsoft.SharePoint.Client.WebParts
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Sub CloseWebPart
'Usage
Dim instance As WebPartDefinition

instance.CloseWebPart()
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