Partager via


Site.AllowDesigner - Propriété

Gets or sets a value that specifies whether a designer can be used on this site collection.

Espace de noms :  Microsoft.SharePoint.Client
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 Property AllowDesigner As Boolean
    Get
    Set
'Utilisation
Dim instance As Site
Dim value As Boolean

value = instance.AllowDesigner

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

Valeur de propriété

Type : System.Boolean
Returns Boolean.
true if a designer can be used on this site collection; otherwise, returns false

Exceptions

Exception Condition
[System.UnauthorizedAccessException]

The current user has insufficient permissions. Either the user is not a site collection administrator, or the setting is disabled at the Web application level. Error code: -2147024891.

Remarques

See Web.AllowDesignerForCurrentUser, which is the method for determining the behavior for the current user. The default, if not disabled on the Web application, is true.

Voir aussi

Référence

Site classe

Site - Membres

Microsoft.SharePoint.Client - Espace de noms