Share via


SPSiteAdministration.ReadOnly property

Gets or sets a Boolean value that specifies whether the site is run in read-only mode.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

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

value = instance.ReadOnly

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

Property value

Type: System.Boolean
true if the site is run in read-only mode; otherwise, false.

See also

Reference

SPSiteAdministration class

SPSiteAdministration members

Microsoft.SharePoint.Administration namespace