MsmqBindingElementBase.CustomDeadLetterQueue Property

Definition

Gets or sets a Uri that identifies a custom dead-letter queue where expired messages or messages that failed to be delivered are sent.

C#
public Uri CustomDeadLetterQueue { get; set; }

Property Value

Uri

The URI of the custom dead-letter queue.

Remarks

A dead-letter queue is a queue managed by the sending application's queue manager that stores messages that have failed to be delivered or have expired. The CustomDeadLetterQueue property allows you to specify a custom dead-letter queue rather than using the default system-wide dead-letter queue.

The URI that is specified by CustomDeadLetterQueue must use the net.msmq scheme.

If DeadLetterQueue is set to None or System, then CustomDeadLetterQueue must be set to null. If CustomDeadLetterQueue is not null, then DeadLetterQueue must be set to Custom.

The CustomDeadLetterQueue property can be set only on operating systems starting with Windows Vista.

Applies to

Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1