Gets or sets a Boolean value that specifies whether the site collection is read-only, locked, and unavailable for write access.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Property ReadOnly As Boolean
Get
Set
用法
Dim instance As SPSite
Dim value As Boolean
value = instance.ReadOnly
instance.ReadOnly = value
public bool ReadOnly { get; set; }
属性值
类型:System.Boolean
true if the site collection is read-only, locked, and unavailable for write access; otherwise, false.
备注
Setting ReadOnly to true or false also sets WriteLocked to the same value.
ReadOnly returns true whenever the IsReadOnly property of the parent SPDatabase object is true.