SPSite.AllowMasterPageEditing 属性
Used to assign or retrieve the Site Collection property that allows master page editing.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Property AllowMasterPageEditing As Boolean
Get
Set
用法
Dim instance As SPSite
Dim value As Boolean
value = instance.AllowMasterPageEditing
instance.AllowMasterPageEditing = value
public bool AllowMasterPageEditing { get; set; }
属性值
类型: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.
备注
警告
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.