Extension function to get the destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.

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

Syntax

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

Parameters

session
Type: Apache.NMS..::..ISession
destinationName
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