Creates a QueueBrowser object to peek at the messages on
the specified queue using a message selector.
Namespace:
Kaazing.JMSAssembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Function CreateBrowser ( _ queue As IQueue, _ messageSelector As String _ ) As IQueueBrowser |
| C# |
|---|
IQueueBrowser CreateBrowser( IQueue queue, string messageSelector ) |
| Visual C++ |
|---|
IQueueBrowser^ CreateBrowser( IQueue^ queue, String^ messageSelector ) |
Parameters
- queue
- Type: Kaazing.JMS..::..IQueue
the Queue to access
- messageSelector
- Type: System..::..String
only messages with properties matching the message selector expression are delivered. A value of null or an empty string indicates that there is no message selector for the message consumer.
Implements
ISession..::..CreateBrowser(IQueue, String)
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the session fails to create a browser due to some internal error. |
| Kaazing.JMS..::..InvalidDestinationException | if an invalid queue is specified. |
| Kaazing.JMS..::..InvalidSelectorException | if the message selector is invalid. |