Compartilhar via


ModuleClient.Create Método

Definição

Sobrecargas

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

Cria um ModuleClient com base em parâmetros individuais.

Create(String, String, IAuthenticationMethod, ClientOptions)

Cria um Módulo AMQPClient com base em parâmetros individuais.

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

Cria um ModuleClient com base em parâmetros individuais.

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

Cria um ModuleClient com base em parâmetros individuais.

Create(String, IAuthenticationMethod, ClientOptions)

Cria um Módulo AMQPClient com base em parâmetros individuais.

Create(String, IAuthenticationMethod, TransportType, ClientOptions)

Cria um ModuleClient com base em parâmetros individuais.

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

Cria um ModuleClient com base em parâmetros individuais.

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

Parâmetros

hostname
String

O nome do host DNS totalmente qualificado do Hub IoT.

gatewayHostname
String

O nome do host DNS totalmente qualificado do Gateway.

authenticationMethod
IAuthenticationMethod

O método de autenticação usado.

transportType
TransportType

O transportType usado (Http1 ou AMQP).

options
ClientOptions

As opções que permitem a configuração da instância do cliente do módulo durante a inicialização.

Retornos

ModuleClient

Aplica-se a

Create(String, String, IAuthenticationMethod, ClientOptions)

Cria um Módulo AMQPClient com base em parâmetros individuais.

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

Parâmetros

hostname
String

O nome do host DNS totalmente qualificado do Hub IoT.

gatewayHostname
String

O nome do host DNS totalmente qualificado do Gateway.

authenticationMethod
IAuthenticationMethod

O método de autenticação usado.

options
ClientOptions

As opções que permitem a configuração da instância do cliente do módulo durante a inicialização.

Retornos

ModuleClient

Aplica-se a

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

Cria um ModuleClient com base em parâmetros individuais.

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

Parâmetros

hostname
String

O nome do host DNS totalmente qualificado do Hub IoT.

gatewayHostname
String

O nome do host DNS totalmente qualificado do Gateway.

authenticationMethod
IAuthenticationMethod

O método de autenticação usado.

transportSettings
ITransportSettings[]

Lista priorizada de transportTypes e suas configurações.

options
ClientOptions

As opções que permitem a configuração da instância do cliente do módulo durante a inicialização.

Retornos

ModuleClient

Aplica-se a

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

Cria um ModuleClient com base em parâmetros individuais.

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

Parâmetros

hostname
String

O nome do host DNS totalmente qualificado do Hub IoT.

authenticationMethod
IAuthenticationMethod

O método de autenticação usado.

transportSettings
ITransportSettings[]

Lista priorizada de transportTypes e suas configurações.

options
ClientOptions

As opções que permitem a configuração da instância do cliente do módulo durante a inicialização.

Retornos

ModuleClient

Aplica-se a

Create(String, IAuthenticationMethod, ClientOptions)

Cria um Módulo AMQPClient com base em parâmetros individuais.

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

Parâmetros

hostname
String

O nome do host DNS totalmente qualificado do Hub IoT.

authenticationMethod
IAuthenticationMethod

O método de autenticação usado.

options
ClientOptions

As opções que permitem a configuração da instância do cliente do módulo durante a inicialização.

Retornos

ModuleClient

Aplica-se a

Create(String, IAuthenticationMethod, TransportType, ClientOptions)

Cria um ModuleClient com base em parâmetros individuais.

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

Parâmetros

hostname
String

O nome do host DNS totalmente qualificado do Hub IoT.

authenticationMethod
IAuthenticationMethod

O método de autenticação usado.

transportType
TransportType

O transportType usado (Http1 ou AMQP).

options
ClientOptions

As opções que permitem a configuração da instância do cliente do módulo durante a inicialização.

Retornos

ModuleClient

Aplica-se a