Unsubscribes a durable subscription that has been created by a client.
Namespace:
Kaazing.JMSThis method deletes the state being maintained on behalf of the subscriber by its provider.
It is erroneous for a client to delete a durable subscription while there is an active MessageConsumer or TopicSubscriber for the subscription, or while a consumed message is part of a pending transaction or has not been acknowledged in the session.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Sub Unsubscribe ( _ name As String _ ) |
| C# |
|---|
void Unsubscribe( string name ) |
| Visual C++ |
|---|
void Unsubscribe( String^ name ) |
Parameters
- name
- Type: System..::..String
the name used to identify this subscription
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the session fails to unsubscribe to the durable subscription due to some internal error. |
| Kaazing.JMS..::..InvalidDestinationException | if an invalid subscription name is specified. |