次の方法で共有


IsRetentionEnabled プロパティ

サービス キューの保有期間が有効かどうかを示す Boolean プロパティを取得します。値の設定も可能です。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property IsRetentionEnabled As Boolean
    Get
    Set
'使用
Dim instance As ServiceQueue
Dim value As Boolean

value = instance.IsRetentionEnabled

instance.IsRetentionEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool IsRetentionEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool IsRetentionEnabled {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member IsRetentionEnabled : bool with get, set
function get IsRetentionEnabled () : boolean
function set IsRetentionEnabled (value : boolean)

プロパティ値

型: System. . :: . .Boolean
サービス キューの保有期間が有効かどうかを示す Boolean 値です。
True の場合、サービス キューの保有期間は有効です。
False (既定値) の場合、サービス キューの保有期間は無効です。