Condividi tramite


Proprietà ServiceQueue.IsPoisonMessageHandlingEnabled

Gets or sets a Boolean property that specifies whether automatic poison message handling is active for the Service Broker queue.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property IsPoisonMessageHandlingEnabled As Boolean 
    Get 
    Set
'Utilizzo
Dim instance As ServiceQueue 
Dim value As Boolean 

value = instance.IsPoisonMessageHandlingEnabled

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

Valore proprietà

Tipo: System.Boolean
A Boolean value that specifies the state of automatic poison message handling for the Service Broker queue. True specifies that automatic poison message handling is active. False specifies that automatic poison message handling is not active.

Osservazioni

Do not disable automatic poison message handling unless the application using the queue has the logic to handle poison messages.

Vedere anche

Riferimento

ServiceQueue Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Broker

Altre risorse

Gestione di messaggi non elaborabili