次の方法で共有


ServiceQueue.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 (既定値) の場合、サービス キューの保有期間は無効です。

使用例

Readme_ServiceBrokerConfiguration

関連項目

参照

ServiceQueue クラス

Microsoft.SqlServer.Management.Smo.Broker 名前空間

その他の技術情報

開発 (Service Broker)

Service Broker の管理

概要 (Service Broker)

CREATE QUEUE (Transact-SQL)