Collapse All Expand All

.NET Framework Class Library
Session Class See Also

[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]

Create a QueueBrowser object to peek at the messages on the specified queue using a message selector.

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)

# Syntax

    public QueueBrowser CreateBrowser(
    	Queue queue,
    	string messageSelector
    )

    Public Function CreateBrowser ( _
    	queue As Queue, _
    	messageSelector As String _
    ) As QueueBrowser

    public:
    QueueBrowser^ CreateBrowser(
    	Queue^ queue,
    	String^ messageSelector
    )

#### Parameters

queue
  Type: TIBCO.EMS.UFO..::.Queue
  The queue to browse

messageSelector
  Type: System..::.String
  Only messages with properties matching the message selector expression are delivered. A value of null or an empty string specifies that the browser is to view all messages in the queue.

# Remarks

The QueueBrowser object will be recreated during connection recovery process.

# Exceptions

Exception | Condition
--- | ---
EMSException | If the session fails to create a browser due to some internal error.
InvalidDestinationException | If an invalid destination is specified.
InvalidSelectorException | If the message selector is invalid.

# See Also

Session Class
CreateBrowser Overload
TIBCO.EMS.UFO Namespace