次の方法で共有


ReadOnly プロパティ

データベースが読み取り専用であるかどうかを示す Boolean プロパティ値を取得します。値の設定も可能です。

名前空間:  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