DatabaseOptions.ReadOnly DatabaseOptions.ReadOnly DatabaseOptions.ReadOnly Property

Definition

Gets or sets the Boolean property value that specifies whether the database is read-only.

public:
 property bool ReadOnly { bool get(); void set(bool value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone)]
public bool ReadOnly { get; set; }
Public Property ReadOnly As Boolean
Property Value

A Boolean value that specifies whether the database is read-only.

If True, the database is read-only. Otherwise, False (default).

Examples

Setting Properties

Applies to