Extension function to get the destination by parsing the embedded type prefix.

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

Syntax

Visual Basic
<ExtensionAttribute> _
Public Shared Function GetQueue ( _
	session As ISession, _
	queueName As String _
) As IQueue
C#
public static IQueue GetQueue(
	this ISession session,
	string queueName
)
Visual C++
[ExtensionAttribute]
public:
static IQueue^ GetQueue(
	ISession^ session, 
	String^ queueName
)
JavaScript
Apache.NMS.SessionExtensions.getQueue = function(session, queueName);

Parameters

session
Type: Apache.NMS..::..ISession
queueName
Type: System..::..String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISession. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also