This documentation is archived and is not being maintained.

DefaultPropertiesToSend.UseDeadLetterQueue Property

Gets or sets a value indicating whether a copy of the message that could not be delivered should be sent to a dead-letter queue.

[Visual Basic]
Public Property UseDeadLetterQueue As Boolean
public bool UseDeadLetterQueue {get; set;}
public: __property bool get_UseDeadLetterQueue();
public: __property void set_UseDeadLetterQueue(bool);
public function get UseDeadLetterQueue() : Boolean;
public function set UseDeadLetterQueue(Boolean);

Property Value

true if message delivery failure should result in a copy of the message being sent to a dead-letter queue; otherwise, false. The default is false.


UseJournalQueue and UseDeadLetterQueue specify how Message Queuing will track a message. If UseDeadLetterQueue is true, then in case of delivery failure (for non-transactional messages), the message is sent to the non-transactional dead-letter queue on the computer that could not deliver the message (for example, if a message timer expires).

In the case of delivery failure for transactional messages, the message is sent to the transactional dead-letter queue on the source computer in all negative and in-doubt cases.

When you store messages in a dead-letter queue, empty the queue periodically to remove messages that are no longer needed. Messages stored in dead-letter queues count against the size quota for the computer where the queue resides. The computer quota is set by the administrator and refers to the total size allocated for storing messages on a computer, not just in a single queue.

Note   You do not create a journal or dead-letter queue. These are both system queues that are generated by Message Queuing.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DefaultPropertiesToSend Class | DefaultPropertiesToSend Members | System.Messaging Namespace | UseJournalQueue | UseTracing | Message.UseDeadLetterQueue