Dela via


ModuleClient.CreateFromConnectionString Method

Definition

Overloads

CreateFromConnectionString(String, ClientOptions)

Creates a ModuleClient using AMQP transport from the specified connection string.

CreateFromConnectionString(String, ITransportSettings[], ClientOptions)

Creates ModuleClient from the specified connection string using a prioritized list of transports.

CreateFromConnectionString(String, TransportType, ClientOptions)

Creates ModuleClient from the specified connection string using the specified transport type.

CreateFromConnectionString(String, ClientOptions)

Creates a ModuleClient using AMQP transport from the specified connection string.

public static Microsoft.Azure.Devices.Client.ModuleClient CreateFromConnectionString (string connectionString, Microsoft.Azure.Devices.Client.ClientOptions options = default);
static member CreateFromConnectionString : string * Microsoft.Azure.Devices.Client.ClientOptions -> Microsoft.Azure.Devices.Client.ModuleClient
Public Shared Function CreateFromConnectionString (connectionString As String, Optional options As ClientOptions = Nothing) As ModuleClient

Parameters

connectionString
String

Connection string for the IoT hub (including DeviceId).

options
ClientOptions

The options that allow configuration of the module client instance during initialization.

Returns

ModuleClient

Applies to

CreateFromConnectionString(String, ITransportSettings[], ClientOptions)

Creates ModuleClient from the specified connection string using a prioritized list of transports.

public static Microsoft.Azure.Devices.Client.ModuleClient CreateFromConnectionString (string connectionString, Microsoft.Azure.Devices.Client.ITransportSettings[] transportSettings, Microsoft.Azure.Devices.Client.ClientOptions options = default);
static member CreateFromConnectionString : string * Microsoft.Azure.Devices.Client.ITransportSettings[] * Microsoft.Azure.Devices.Client.ClientOptions -> Microsoft.Azure.Devices.Client.ModuleClient
Public Shared Function CreateFromConnectionString (connectionString As String, transportSettings As ITransportSettings(), Optional options As ClientOptions = Nothing) As ModuleClient

Parameters

connectionString
String

Connection string for the IoT hub (with DeviceId).

transportSettings
ITransportSettings[]

Prioritized list of transports and their settings.

options
ClientOptions

The options that allow configuration of the module client instance during initialization.

Returns

ModuleClient

Applies to

CreateFromConnectionString(String, TransportType, ClientOptions)

Creates ModuleClient from the specified connection string using the specified transport type.

public static Microsoft.Azure.Devices.Client.ModuleClient CreateFromConnectionString (string connectionString, Microsoft.Azure.Devices.Client.TransportType transportType, Microsoft.Azure.Devices.Client.ClientOptions options = default);
static member CreateFromConnectionString : string * Microsoft.Azure.Devices.Client.TransportType * Microsoft.Azure.Devices.Client.ClientOptions -> Microsoft.Azure.Devices.Client.ModuleClient
Public Shared Function CreateFromConnectionString (connectionString As String, transportType As TransportType, Optional options As ClientOptions = Nothing) As ModuleClient

Parameters

connectionString
String

Connection string for the IoT hub (including DeviceId).

transportType
TransportType

Specifies whether AMQP or HTTP transport is used.

options
ClientOptions

The options that allow configuration of the module client instance during initialization.

Returns

ModuleClient

Applies to