[TIBCO.EMS .NET client library 6.0 documentation]

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

Namespace:  TIBCO.EMS
Assembly:  TIBCO.EMS (in TIBCO.EMS.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..::.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.

Exceptions

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

See Also