[TIBCO.EMS .NET client library 7.0 documentation]
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)
Create a MessageConsumer for a specific destination.
Namespace:
TIBCO.EMSAssembly: TIBCO.EMS (in TIBCO.EMS.dll)
Syntax
public MessageConsumer CreateConsumer( Destination dest ) |
Public Function CreateConsumer ( _ dest As Destination _ ) As MessageConsumer |
public: MessageConsumer^ CreateConsumer( Destination^ dest ) |
Parameters
- dest
- Type: TIBCO.EMS..::.Destination
The Destination to access.
Remarks
Because Queue and Topic both inherit from Destination, they can be used in the destination parameter to create a MessageConsumer.
A client uses a MessageConsumer object to receive messages that have been sent to a destination.
Exceptions
Exception | Condition |
---|---|
TIBCO.EMS..::.EMSException | If the session fails to create a consumer due to some internal error. |
TIBCO.EMS..::.InvalidDestinationException | If an invalid destination is specified. |