Partager via


WebPart.IsClosed - Propriété

Gets a value that specifies whether a Web Part is currently closed on a Web Part Page.

Espace de noms :  Microsoft.SharePoint.Client.WebParts
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public ReadOnly Property IsClosed As Boolean
    Get
'Utilisation
Dim instance As WebPart
Dim value As Boolean

value = instance.IsClosed
public bool IsClosed { get; }

Valeur de propriété

Type : System.Boolean
Returns Booleantrue if Web Part is currently closed on a Web Part Page; otherwise, returns false.

Remarques

If true, the Web Part is closed. Web Parts that are closed must not be displayed on the page, and must not participate normally in the rendering of the page. The default value is false.

OpenWebPart method opens the Web Part. 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.

Voir aussi

Référence

WebPart classe

WebPart - Membres

Microsoft.SharePoint.Client.WebParts - Espace de noms