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();