ReadOnly プロパティ
データベースが読み取り専用であるかどうかを示すブール値を取得します。値の設定も可能です。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
<DisplayNameKeyAttribute("Database_ReadOnlyName")> _
<DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")> _
Property ReadOnly As Boolean
Get
Set
'使用
Dim instance As IDatabaseMaintenanceFacet
Dim value As Boolean
value = instance.ReadOnly
instance.ReadOnly = value
[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);
}
[<DisplayNameKeyAttribute("Database_ReadOnlyName")>]
[<DisplayDescriptionKeyAttribute("Database_ReadOnlyDesc")>]
abstract ReadOnly : bool with get, set
function get ReadOnly () : boolean
function set ReadOnly (value : boolean)
プロパティ値
型: System. . :: . .Boolean
Boolean
True の場合、データベースは読み取り専用です。
False の場合、データベースは読み取り専用ではありません。