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

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

Syntax

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

Parameters

queue
Type: Apache.NMS..::..IQueue
A IQueue

Return Value

A IQueueBrowser

Exceptions

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

See Also