Share via


WebPartDefinition.OpenWebPart method

Opens the Web Part.

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

Syntax

'Declaration
Public Sub OpenWebPart
'Usage
Dim instance As WebPartDefinition

instance.OpenWebPart()
public void OpenWebPart()

Remarks

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.

CloseWebPart method closes the Web Part. 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.

See also

Reference

WebPartDefinition class

WebPartDefinition members

Microsoft.SharePoint.Client.WebParts namespace