Method DeleteTopic
DeleteTopic(String)
Deletes the specified topic.
Declaration
void DeleteTopic(string topicName)
Parameters
Type | Name | Description |
---|---|---|
System.String | topicName |
Examples
The following example demonstrates how to get a topic.
First initialize cache.
Cache cache = NCache.InitializeCache("myCache");
Then get messaging service from cache.
IMessagingService messagingService=cache.MessagingService;
Then delete topic from messagingService
messagingService.DeleteTopic("mytopic");