[TIBCO.EMS.UFOCLIENT .NET client library 8.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

ExceptionCondition
EMSExceptionIf the session fails to create a browser due to some internal error.
InvalidDestinationExceptionIf an invalid destination is specified.
InvalidSelectorExceptionIf the message selector is invalid.

See Also