Unsubscribes a durable subscription that has been created by a client.

This method deletes the state being maintained on behalf of the subscriber by its provider.

A

It is erroneous for a client to delete a durable subscription while there is an active TopicSubscriber for the subscription, or while a consumed message is part of a pending transaction or has not been acknowledged in the session.

Namespace:  Kaazing.JMS
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

Implements

ISession..::..Unsubscribe(String)

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the session fails to unsubscribe to the durable subscription due to some internal error.
Kaazing.JMS..::..InvalidDestinationExceptionif an invalid subscription name is specified.

See Also