Method DeleteTopic
DeleteTopic(String)
Deletes the topic instance against the specified topic name.
Declaration
void DeleteTopic(string topicName)
Parameters
Type | Name | Description |
---|---|---|
System.String | topicName | Name to identify topic. |
Examples
The following example demonstrates how to delete a topic.
First initialize cache.
ICache cache = CacheManager.GetCache("demoCache");
Then get messaging service from cache.
IMessagingService messagingService=cache.MessagingService;
Then delete topic from messagingService
messagingService.DeleteTopic("mytopic");