共用方式為


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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.IsReadOnly
public 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