Collapse All Expand All

.NET Framework Class Library
Session Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Unsubscribe a durable topic subscription

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public void Unsubscribe(
    	string name
    )

    Public Sub Unsubscribe ( _
    	name As String _
    )

    public:
    void Unsubscribe(
    	String^ name
    )

#### Parameters

name
  Type: System..::.String
  The name of the durable subscriber

# Remarks

This method deletes the named subscription from the server.

# Exceptions

Exception | Condition
--- | ---
TIBCO.EMS..::.EMSException | Attempt to delete an active subscription (while a MessageConsumer or TopicSubscriber exists) or to delete a subscription while one of its messages is either unacknowledged, or uncommitted (in the current transaction).
TIBCO.EMS..::.IllegalStateException | Session is closed.

# See Also

Session Class
TIBCO.EMS Namespace