Partager via


SPSite.AllowDesigner - Propriété

Used to assign or retrieve the Site Collection Allow Designer property.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Property AllowDesigner As Boolean
    Get
    Set
'Utilisation
Dim instance As SPSite
Dim value As Boolean

value = instance.AllowDesigner

instance.AllowDesigner = value
public bool AllowDesigner { get; set; }

Valeur de propriété

Type : System.Boolean
A Boolean value depending on what the behavior should be for the current user. The default value is false if the property is not disabled on the web application.

Remarques

Avertissement

A UnauthorizedAccessException is thrown when attempting to set the property if either the user is not a Site Collection administrator or the setting is disabled at the web application level.

Voir aussi

Référence

SPSite classe

SPSite - Membres

Microsoft.SharePoint - Espace de noms