Unsubscribing

There are three ways to unsubscribe:

  1. Unsubscribe using a binding handle

  2. Unsubscribe from all topics

  3. Unsubscribe from all topics as interface implementer

Using binding handle

Achieved by calling Unsubscribe function and passing in the handle or by calling UnsubscribeMany and passing an array of handles.

From all topics

Achieved by calling UnsubscribeFromAllTopics function. This removes the subscription to all topics for the caller previously made by calling SubscribeToAllTopics. Optionally, you can set the bIncludeIndividualSubscriptions parameter in order to also include all the subscriptions for the caller made with SubscribeToTopic - this is mostly for convenience as it removes the requirement of storing the handles if need to bulk remove.

From all topics as an interface implementer

Achieved by calling UnsubscribeFromAllTopicsAsInterface function. This removes the subscription to all topics for the caller previously made by calling SubscribeToAllTopicsAsInterface. Subscriptions made by this object using other subscribing methods won't be removed.

Last updated