次の方法で共有


IDatabasePerformanceFacet.AutoShrink プロパティ

データベース ファイルが定期的な圧縮の対象であるかどうかを示します。

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

構文

'宣言
<DisplayDescriptionKeyAttribute("Database_AutoShrinkDesc")> _
<DisplayNameKeyAttribute("Database_AutoShrinkName")> _
Property AutoShrink As Boolean 
    Get 
    Set
'使用
Dim instance As IDatabasePerformanceFacet 
Dim value As Boolean 

value = instance.AutoShrink

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

プロパティ値

型: System.Boolean
データベース ファイルを自動的に圧縮できるかどうかを示す Boolean 値。データベース ファイルを自動的に圧縮できる場合は True を、それ以外の場合は False を返します。

説明

このプロパティは、ALTER DATABASE SET OPTIONS の引数 AUTO_SHRINK TSQL に対応しています。

関連項目

参照

IDatabasePerformanceFacet インターフェイス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

ALTER DATABASE の SET オプション (Transact-SQL)