TopicClient.CreateFromConnectionString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應