IDatabaseOptions.ReadOnly Property
Gets or sets the Boolean property value that specifies whether the database is read-only. This property is not CLS-compliant.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Deklaracja
<DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")> _
<DisplayNameKeyAttribute("Database_ReadOnlyName")> _
Property ReadOnly As Boolean
[DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")]
[DisplayNameKeyAttribute("Database_ReadOnlyName")]
bool ReadOnly { get; set; }
[DisplayDescriptionKeyAttribute(L"Database_ReadOnlyDesc")]
[DisplayNameKeyAttribute(L"Database_ReadOnlyName")]
property bool ReadOnly {
bool get ();
void set (bool value);
}
/** @property */
boolean get_ReadOnly ()
/** @property */
void set_ReadOnly (boolean value)
function get ReadOnly () : boolean
function set ReadOnly (value : boolean)
Property Value
A Boolean value that specifies whether the database is read-only. If True, the database is read-only. If False (default), the database can be updated.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
See Also