ModuleClient.Create 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
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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기