다음을 통해 공유


ModuleClient.Create Method

Definition

Overloads

Create(String, String, IAuthenticationMethod, TransportType, ClientOptions)

Creates a ModuleClient from individual parameters.

Create(String, String, IAuthenticationMethod, ClientOptions)

Creates an AMQP ModuleClient from individual parameters.

Create(String, String, IAuthenticationMethod, ITransportSettings[], ClientOptions)

Creates a ModuleClient from individual parameters.

Create(String, IAuthenticationMethod, ITransportSettings[], ClientOptions)

Creates a ModuleClient from individual parameters.

Create(String, IAuthenticationMethod, ClientOptions)

Creates an AMQP ModuleClient from individual parameters.

Create(String, IAuthenticationMethod, TransportType, ClientOptions)

Creates a ModuleClient from individual parameters.

Create(String, String, IAuthenticationMethod, TransportType, ClientOptions)

Creates a ModuleClient from individual parameters.

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

Parameters

hostname
String

The fully-qualified DNS host name of IoT hub.

gatewayHostname
String

The fully-qualified DNS host name of Gateway.

authenticationMethod
IAuthenticationMethod

The authentication method that is used.

transportType
TransportType

The transportType used (Http1 or AMQP).

options
ClientOptions

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

Returns

ModuleClient

Applies to

Create(String, String, IAuthenticationMethod, ClientOptions)

Creates an AMQP ModuleClient from individual parameters.

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

Parameters

hostname
String

The fully-qualified DNS host name of IoT hub.

gatewayHostname
String

The fully-qualified DNS host name of Gateway.

authenticationMethod
IAuthenticationMethod

The authentication method that is used.

options
ClientOptions

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

Returns

ModuleClient

Applies to

Create(String, String, IAuthenticationMethod, ITransportSettings[], ClientOptions)

Creates a ModuleClient from individual parameters.

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

Parameters

hostname
String

The fully-qualified DNS host name of IoT hub.

gatewayHostname
String

The fully-qualified DNS host name of Gateway.

authenticationMethod
IAuthenticationMethod

The authentication method that is used.

transportSettings
ITransportSettings[]

Prioritized list of transportTypes and their settings.

options
ClientOptions

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

Returns

ModuleClient

Applies to

Create(String, IAuthenticationMethod, ITransportSettings[], ClientOptions)

Creates a ModuleClient from individual parameters.

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

Parameters

hostname
String

The fully-qualified DNS host name of IoT hub.

authenticationMethod
IAuthenticationMethod

The authentication method that is used.

transportSettings
ITransportSettings[]

Prioritized list of transportTypes and their settings.

options
ClientOptions

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

Returns

ModuleClient

Applies to

Create(String, IAuthenticationMethod, ClientOptions)

Creates an AMQP ModuleClient from individual parameters.

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

Parameters

hostname
String

The fully-qualified DNS host name of IoT hub.

authenticationMethod
IAuthenticationMethod

The authentication method that is used.

options
ClientOptions

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

Returns

ModuleClient

Applies to

Create(String, IAuthenticationMethod, TransportType, ClientOptions)

Creates a ModuleClient from individual parameters.

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

Parameters

hostname
String

The fully-qualified DNS host name of IoT hub.

authenticationMethod
IAuthenticationMethod

The authentication method that is used.

transportType
TransportType

The transportType used (Http1 or AMQP).

options
ClientOptions

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

Returns

ModuleClient

Applies to