Table of Contents

AutoDelete Property

Definition

AutoDelete

Gets or sets a value indicating whether the queue should be automatically deleted when no longer in use.

public bool AutoDelete { get; set; }

Property Value

bool

true if the queue is automatically deleted when the last consumer unsubscribes; otherwise, false.

Remarks

Auto-delete queues are deleted when the last consumer unsubscribes. If there are no consumers, the queue is not deleted.