• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Method UnSubscribe

UnSubscribe()

Unsubscribes topic.

Declaration
void UnSubscribe()
Remarks

You can use this method to allow the subscriber to unregister from the topic, i.e., the subscriber will not receive any messages in the future.

Examples

Example unsubscribes the subscription

ITopicSubscription topicSubscription = _topic.CreateSubscription(messageReceivedCallback);

topicSubscription.UnSubscribe();
Back to top Copyright © 2017 Alachisoft