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

Namespace:  Apache.NMS
Assembly:  Apache.NMS (in Apache.NMS.dll)

Syntax

Visual Basic
Function CreateBrowser ( _
	queue As IQueue, _
	selector As String _
) As IQueueBrowser
C#
IQueueBrowser CreateBrowser(
	IQueue queue,
	string selector
)
Visual C++
IQueueBrowser^ CreateBrowser(
	IQueue^ queue, 
	String^ selector
)
JavaScript
function createBrowser(queue, selector);

Parameters

queue
Type: Apache.NMS..::..IQueue
A IQueue
selector
Type: System..::..String
A String

Return Value

A IQueueBrowser

Exceptions

ExceptionCondition
System..::..NotSupportedException If the Prodiver does not support creation of Queue Browsers.

See Also