ISessionUnsubscribe(ITopicEndpoint, Int32) Method
Note: This API is now obsolete.
Unsubscribes from a durable Topic Endpoint.
Namespace: SolaceSystems.Solclient.MessagingAssembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.27.0
[ObsoleteAttribute("Use Unsubscribe(ITopicEndpoint,object) instead ",
false)]
ReturnCode Unsubscribe(
ITopicEndpoint dte,
int correlationId
)
- dte ITopicEndpoint
- The durable Topic Endpoint to unsubscribe from.
- correlationId Int32
- Correlation Id used in the unsubscribe request
and returned in the session event CorrelationKey.
Valid values are within [1..16777215]. A value of 0 (zero) indicates that correlationId is not to be returned
(in this case CorrelationKey will be null).
Any other value outside of the previously stated values will cause an ArgumentOutOfRangeException
exception to be thrown.
ReturnCodeThe return code from the unsubscribe request.
OperationErrorException |
Thrown when the operation fails.
|
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.
|
ArgumentOutOfRangeException |
Thrown if correlationId is out of range.
|