Database.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

関連項目

参照

Database クラス

Microsoft.SqlServer.Management.Smo 名前空間