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 the cache.
ICache cache = CacheManager.GetCache("demoCache");
Then, get messaging service from cache.
IMessagingService messagingService=cache.MessagingService;
The,n delete topic from messagingService.
messagingService.DeleteTopic("mytopic");