10.24.0

ISessionUnsubscribe(ISubscription, Boolean) Method

Remove a subscription.

Definition

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.24.0
C#
ReturnCode Unsubscribe(
	ISubscription subscription,
	bool waitForConfirm
)

Parameters

subscription  ISubscription
The subscription to unsubscribe to.
waitForConfirm  Boolean
If true, this call blocks the calling thread until a reply is received from the appliance.

Return Value

ReturnCode
SOLCLIENT_WOULD_BLOCK or SOLCLIENT_OK or SOLCLIENT_IN_PROGRESS

Exceptions

OperationErrorException Thrown when the Unsubscribe operation fails. Possible sub-codes:
ObjectDisposedException Thrown when the session is already disposed (terminal state).
FatalErrorException Thrown when an unrecoverable error occurs.
ArgumentNullException Thrown if subscription is null.

See Also