ReadOnly プロパティ

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

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")> _
<DisplayNameKeyAttribute("Database_ReadOnlyName")> _
Property ReadOnly As Boolean
    Get
    Set
'使用
Dim instance As IDatabaseOptions
Dim value As Boolean

value = instance.ReadOnly

instance.ReadOnly = value
[DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")]
[DisplayNameKeyAttribute("Database_ReadOnlyName")]
bool ReadOnly { get; set; }
[DisplayDescriptionKeyAttribute(L"Database_ReadOnlyDesc")]
[DisplayNameKeyAttribute(L"Database_ReadOnlyName")]
property bool ReadOnly {
    bool get ();
    void set (bool value);
}
[<DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")>]
[<DisplayNameKeyAttribute("Database_ReadOnlyName")>]
abstract ReadOnly : bool with get, set
function get ReadOnly () : boolean
function set ReadOnly (value : boolean)

プロパティ値

型: System. . :: . .Boolean
データベースが読み取り専用かどうかを指定する Boolean 値。
True の場合、データベースは読み取り専用です。
False (既定値) の場合、データベースを更新できます。