SPSite.AllowDesigner property
用來指定或擷取網站集合的Allow Designer屬性。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property AllowDesigner As Boolean
Get
Set
'用途
Dim instance As SPSite
Dim value As Boolean
value = instance.AllowDesigner
instance.AllowDesigner = value
public bool AllowDesigner { get; set; }
Property value
Type: System.Boolean
根據行為應該是目前使用者的Boolean值。預設值是讀/寫屬性不會停用 web 應用程式。
備註
注意
當您嘗試設定屬性,如果使用者不是網站集合系統管理員,或是設定為停用 web 應用程式層級時,會擲回UnauthorizedAccessException 。