RemoveSubscription method

void RemoveSubscription(
  1. StreamingSubscription subscription
)
Removes the specified streaming subscription from the connection. The subscription to remove.

Implementation

void RemoveSubscription(StreamingSubscription subscription) {
  this.ThrowIfDisposed();

  EwsUtilities.ValidateParam(subscription, "subscription");

  this.ValidateConnectionState(
      false, "Strings.CannotRemoveSubscriptionFromLiveConnection");

  this._subscriptions.remove(subscription.Id);
}