共用方式為


ServiceQueue.IsRetentionEnabled 屬性

Gets or sets the Boolean property that specifies whether the retention is enabled for the service queue.

命名空間:  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
A Boolean value that specifies whether retention is enabled for the service queue.If True, retention is enabled for the service queue.If False (default), retention is disabled for the service queue.

範例

Readme_ServiceBrokerConfiguration

請參閱

參考

ServiceQueue 類別

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

其他資源

開發 (Service Broker)

管理 Service Broker

概觀 (Service Broker)

CREATE QUEUE (Transact-SQL)