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 GetTopic ( _
	session As ISession, _
	topicName As String _
) As ITopic
C#
public static ITopic GetTopic(
	this ISession session,
	string topicName
)
Visual C++
[ExtensionAttribute]
public:
static ITopic^ GetTopic(
	ISession^ session, 
	String^ topicName
)
JavaScript
Apache.NMS.SessionExtensions.getTopic = function(session, topicName);

Parameters

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