Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AutoDeleteOnIdle Property

TopicDescription.AutoDeleteOnIdle Property

 

Gets or sets the TimeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public TimeSpan AutoDeleteOnIdle { get; set; }

Property Value

Type: System.TimeSpan

The auto delete on idle time span for the topic.

The topic is deleted if no send operation is performed for this topic, and no receive operation is performed for any subscriptions to the topic, for the duration specified in the AutoDeleteOnIdle property.

TopicDescription topicDescription = new TopicDescription("myTopic");
topicDescription.AutoDeleteOnIdle = TimeSpan.FromMinutes(30);
namespaceManager.CreateTopic(topicDescription);
Return to top
Show:
© 2015 Microsoft