共用方式為


ReadOnly 屬性

取得或設定布林屬性值,這個值會指定資料庫是否為唯讀。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property ReadOnly As Boolean
    Get
    Set
'用途
Dim instance As Database
Dim value As Boolean

value = instance.ReadOnly

instance.ReadOnly = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool ReadOnly { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
virtual property bool ReadOnly {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
abstract ReadOnly : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
override ReadOnly : bool with get, set
final function get ReadOnly () : boolean
final function set ReadOnly (value : boolean)

屬性值

型別:System. . :: . .Boolean
Boolean 值,指定資料庫是否為唯讀。如果為 True,則表示資料庫是唯讀的。如果為 False (預設值),則表示可更新資料庫。

實作

IDatabaseOptions. . :: . .ReadOnly