Udostępnij przez


IDatabaseMaintenanceFacet.ReadOnly Property

Gets or sets a Boolean value that specifies if 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
<DisplayNameKeyAttribute("Database_ReadOnlyName")> _
<DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")> _
Property ReadOnly As Boolean
[DisplayNameKeyAttribute("Database_ReadOnlyName")] 
[DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")] 
bool ReadOnly { get; set; }
[DisplayNameKeyAttribute(L"Database_ReadOnlyName")] 
[DisplayDescriptionKeyAttribute(L"Database_ReadOnlyDesc")] 
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

Boolean If True the database is read only. If False the database is not read only.

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.