Creates a consumer of messages on a given destination with a selector

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

Syntax

Visual Basic
Function CreateConsumer ( _
	destination As IDestination, _
	selector As String _
) As IMessageConsumer
C#
IMessageConsumer CreateConsumer(
	IDestination destination,
	string selector
)
Visual C++
IMessageConsumer^ CreateConsumer(
	IDestination^ destination, 
	String^ selector
)
JavaScript
function createConsumer(destination, selector);

Parameters

destination
Type: Apache.NMS..::..IDestination
selector
Type: System..::..String

See Also