TopicClient.CreateFromConnectionString Method

Definition

Overloads

CreateFromConnectionString(String)

Creates a new instance of TopicClient using the specified connection string.

CreateFromConnectionString(String, String)

Creates a new instance of TopicClient using the specified connection string and path to the topic. Use this overload only when the connection string does not use the EntityPath property.

CreateFromConnectionString(String)

Creates a new instance of TopicClient using the specified connection string.

public static Microsoft.ServiceBus.Messaging.TopicClient CreateFromConnectionString (string connectionString);
static member CreateFromConnectionString : string -> Microsoft.ServiceBus.Messaging.TopicClient
Public Shared Function CreateFromConnectionString (connectionString As String) As TopicClient

Parameters

connectionString
String

The connection string to use.

Returns

Returns TopicClient.

Remarks

This method expects the connection string supplied has entity level information such as the entity path and authentication information supplied.

Applies to

CreateFromConnectionString(String, String)

Creates a new instance of TopicClient using the specified connection string and path to the topic. Use this overload only when the connection string does not use the EntityPath property.

public static Microsoft.ServiceBus.Messaging.TopicClient CreateFromConnectionString (string connectionString, string path);
static member CreateFromConnectionString : string * string -> Microsoft.ServiceBus.Messaging.TopicClient
Public Shared Function CreateFromConnectionString (connectionString As String, path As String) As TopicClient

Parameters

connectionString
String

The connection string to use.

path
String

The path.

Returns

The created TopicClient.

Exceptions

Thrown when the format of the parameters is incorrect.

Remarks

This method should only be used with a connection string that has namespace level authentication because the connection string supplied should not have entity level information associated with it.

Applies to