Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsReadOnly property

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)

public bool IsReadOnly { get; }

Property value

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

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

© 2015 Microsoft