共用方式為


SubscriptionClient.CreateFromConnectionString Method

Definition

Overloads

CreateFromConnectionString(String, String, String)

Creates a new copy of SubscriptionClient from a connection string with specified topic path and name.

CreateFromConnectionString(String, String, String, ReceiveMode)

Creates a new copy of SubscriptionClient from a connection string with specified topic path, name and mode.

CreateFromConnectionString(String, String, String)

Creates a new copy of SubscriptionClient from a connection string with specified topic path and name.

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

Parameters

connectionString
String

The connection string.

topicPath
String

The full pathname of the topic.

name
String

The name of the subscription.

Returns

A new copy of SubscriptionClient.

Applies to

CreateFromConnectionString(String, String, String, ReceiveMode)

Creates a new copy of SubscriptionClient from a connection string with specified topic path, name and mode.

public static Microsoft.ServiceBus.Messaging.SubscriptionClient CreateFromConnectionString (string connectionString, string topicPath, string name, Microsoft.ServiceBus.Messaging.ReceiveMode mode);
static member CreateFromConnectionString : string * string * string * Microsoft.ServiceBus.Messaging.ReceiveMode -> Microsoft.ServiceBus.Messaging.SubscriptionClient
Public Shared Function CreateFromConnectionString (connectionString As String, topicPath As String, name As String, mode As ReceiveMode) As SubscriptionClient

Parameters

connectionString
String

The connection string.

topicPath
String

The full pathname of the topic.

name
String

The name of the subscription.

mode
ReceiveMode

The message receive mode.

Returns

A new copy of SubscriptionClient.

Applies to