ISession.Unsubscribe Method (ITopicEndpoint, Object)

Solclient

ISessionUnsubscribe Method (ITopicEndpoint, Object)
version: 7.2.1.27
Unsubscribes from a durable Topic Endpoint. This is only valid if no clients are bound to the topic endpoint.

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntax
ReturnCode Unsubscribe(
	ITopicEndpoint dte,
	Object correlationKey
)
Function Unsubscribe ( 
	dte As ITopicEndpoint,
	correlationKey As Object
) As ReturnCode
ReturnCode Unsubscribe(
	ITopicEndpoint^ dte, 
	Object^ correlationKey
)

Parameters

dte
Type: SolaceSystems.Solclient.MessagingITopicEndpoint
The durable Topic Endpoint to unsubscribe from.
correlationKey
Type: SystemObject
An object reference that is returned in CorrelationKey session event

Return Value

Type: ReturnCode
The return code from the unsubscribe request.
Exceptions
ExceptionCondition
OperationErrorException Thrown when the 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 any of the required parameters is null.
See Also