Site.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.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public ReadOnly Property ReadOnly As Boolean
    Get
'Usage
Dim instance As Site
Dim value As Boolean

value = instance.ReadOnly
public bool ReadOnly { get; }

Property value

Type: System.Boolean
true if the site collection is read-only, locked, and unavailable for write access; otherwise, false.

Remarks

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.

See also

Reference

Site class

Site members

Microsoft.SharePoint.Client namespace