SALES: 1-800-867-1380

MessagingFactory.CreateTopicClient Method

Creates a new topic client.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

'Declaration
Public Function CreateTopicClient ( _
	path As String _
) As TopicClient
'Usage
Dim instance As MessagingFactory
Dim path As String
Dim returnValue As TopicClient

returnValue = instance.CreateTopicClient(path)

Parameters

path
Type: System.String
The topic path relative to the service namespace base address.

Return Value

Type: Microsoft.ServiceBus.Messaging.TopicClient
The newly created topic client.

ExceptionCondition
ArgumentNullException

The supplied path is null.

TimeoutException

The operation times out. The timeout period is initialized through the MessagingFactorySettings object. You may need to increase the value of OperationTimeout to avoid this exception if the timeout value is relatively low.

MessagingException

An internal error or unexpected exception occurs.

OperationCanceledException

The factory has been closed or aborted.

The TopicClient class is used as an anchor class to perform run-time operations, such as creating sender/receiver or add/remove subscription.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft