SPDatabase.IsReadOnly property

Gets a value that indicates whether the database is read-only.

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

Syntax

'Declaration
Public Overridable ReadOnly Property IsReadOnly As Boolean
    Get
'Usage
Dim instance As SPDatabase
Dim value As Boolean

value = instance.IsReadOnly
public virtual bool IsReadOnly { get; }

Property value

Type: System.Boolean
true if the database is read-only; otherwise, false.

Remarks

Getting this property makes one round trip to Microsoft SQL Server per call.

See also

Reference

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace