ModuleClient.CreateFromConnectionString Method

Definition

Overloads

CreateFromConnectionString(String)

Create a ModuleClient using Amqp transport from the specified connection string

CreateFromConnectionString(String, ITransportSettings[])

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

CreateFromConnectionString(String, TransportType)

Create ModuleClient from the specified connection string using the specified transport type

CreateFromConnectionString(String)

Create a ModuleClient using Amqp transport from the specified connection string

public static Microsoft.Azure.Devices.Client.ModuleClient CreateFromConnectionString (string connectionString);
static member CreateFromConnectionString : string -> Microsoft.Azure.Devices.Client.ModuleClient
Public Shared Function CreateFromConnectionString (connectionString As String) As ModuleClient

Parameters

connectionString
String

Connection string for the IoT hub (including DeviceId)

Returns

ModuleClient

CreateFromConnectionString(String, ITransportSettings[])

Create 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);
static member CreateFromConnectionString : string * Microsoft.Azure.Devices.Client.ITransportSettings[] -> Microsoft.Azure.Devices.Client.ModuleClient
Public Shared Function CreateFromConnectionString (connectionString As String, transportSettings As ITransportSettings()) As ModuleClient

Parameters

connectionString
String

Connection string for the IoT hub (with DeviceId)

transportSettings
ITransportSettings[]

Prioritized list of transports and their settings

Returns

ModuleClient

CreateFromConnectionString(String, TransportType)

Create 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);
static member CreateFromConnectionString : string * Microsoft.Azure.Devices.Client.TransportType -> Microsoft.Azure.Devices.Client.ModuleClient

Parameters

connectionString
String

Connection string for the IoT hub (including DeviceId)

transportType
TransportType

Specifies whether Amqp or Http transport is used

Returns

ModuleClient

Applies to