Compartilhar via


Propriedade do RDL ServiceQueue.IsRetentionEnabled

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

Namespace:  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property IsRetentionEnabled As Boolean 
    Get 
    Set
'Uso
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)

Valor da propriedade

Tipo: 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.

Exemplos

Readme_ServiceBrokerConfiguration

Consulte também

Referência

ServiceQueue Classe

Namespace Microsoft.SqlServer.Management.Smo.Broker

Outros recursos

Desenvolvimento (Service Broker)

Gerenciando o Service Broker

Visão geral (Service Broker)

CREATE QUEUE (Transact-SQL)