Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPSite.ReadOnly property

Gets or sets a Boolean value that specifies whether the site collection is read-only, locked, and unavailable for write access.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallablePropertyAttribute(SetProperty = false)]
public bool ReadOnly { get; set; }

Property value

Type: 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.