DigitalTwinAsyncClient 构造函数

定义

重载

DigitalTwinAsyncClient(String connectionString)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

DigitalTwinAsyncClient(String connectionString, DigitalTwinClientOptions options)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

DigitalTwinAsyncClient(String hostName, AzureSasCredential azureSasCredential)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

DigitalTwinAsyncClient(String hostName, AzureSasCredential azureSasCredential, DigitalTwinClientOptions options)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

DigitalTwinAsyncClient(String hostName, TokenCredential credential)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

DigitalTwinAsyncClient(String hostName, TokenCredential credential, DigitalTwinClientOptions options)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

DigitalTwinAsyncClient(String connectionString)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

public DigitalTwinAsyncClient(String connectionString)

参数

connectionString
String

The IoTHub connection string

DigitalTwinAsyncClient(String connectionString, DigitalTwinClientOptions options)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

public DigitalTwinAsyncClient(String connectionString, DigitalTwinClientOptions options)

参数

connectionString
String

The IoTHub connection string

options
DigitalTwinClientOptions

The optional settings for this client. May not be null.

DigitalTwinAsyncClient(String hostName, AzureSasCredential azureSasCredential)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

public DigitalTwinAsyncClient(String hostName, AzureSasCredential azureSasCredential)

参数

hostName
String

The hostname of your IoT Hub instance (For instance, "your-iot-hub.azure-devices.net")

azureSasCredential
AzureSasCredential

The SAS token provider that will be used for authentication.

DigitalTwinAsyncClient(String hostName, AzureSasCredential azureSasCredential, DigitalTwinClientOptions options)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

public DigitalTwinAsyncClient(String hostName, AzureSasCredential azureSasCredential, DigitalTwinClientOptions options)

参数

hostName
String

The hostname of your IoT Hub instance (For instance, "your-iot-hub.azure-devices.net")

azureSasCredential
AzureSasCredential

The SAS token provider that will be used for authentication.

options
DigitalTwinClientOptions

The optional settings for this client. May not be null.

DigitalTwinAsyncClient(String hostName, TokenCredential credential)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

public DigitalTwinAsyncClient(String hostName, TokenCredential credential)

参数

hostName
String

The hostname of your IoT Hub instance (For instance, "your-iot-hub.azure-devices.net")

credential
TokenCredential

The custom TokenCredential that will provide authentication tokens to this library when they are needed.

DigitalTwinAsyncClient(String hostName, TokenCredential credential, DigitalTwinClientOptions options)

Creates an implementation instance of DigitalTwins that is used to invoke the Digital Twin features

public DigitalTwinAsyncClient(String hostName, TokenCredential credential, DigitalTwinClientOptions options)

参数

hostName
String

The hostname of your IoT Hub instance (For instance, "your-iot-hub.azure-devices.net")

credential
TokenCredential

The custom TokenCredential that will provide authentication tokens to this library when they are needed.

options
DigitalTwinClientOptions

The optional settings for this client. May not be null.

适用于