RegistryManager 构造函数

定义

重载

RegistryManager()

Previously was the java default constructor, should not be used.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>As of release 1.22.0, replaced by <xref uid="com.microsoft.azure.sdk.iot.service.RegistryManager.createFromConnectionString(String)" data-throw-if-not-resolved="false" data-raw-source="createFromConnectionString(String)"></xref></p>

</xrefdescription>

RegistryManager(String connectionString)

Constructor to create instance from connection string

RegistryManager(String connectionString, RegistryManagerOptions options)

Constructor to create instance from connection string

RegistryManager(String hostName, AzureSasCredential azureSasCredential)

Create a new RegistryManager instance.

RegistryManager(String hostName, AzureSasCredential azureSasCredential, RegistryManagerOptions options)

Create a new RegistryManager instance.

RegistryManager(String hostName, TokenCredential credential)

Create a new RegistryManager instance.

RegistryManager(String hostName, TokenCredential credential, RegistryManagerOptions options)

Create a new RegistryManager instance.

RegistryManager()

Previously was the java default constructor, should not be used.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>As of release 1.22.0, replaced by <xref uid="com.microsoft.azure.sdk.iot.service.RegistryManager.createFromConnectionString(String)" data-throw-if-not-resolved="false" data-raw-source="createFromConnectionString(String)"></xref></p>

</xrefdescription>

public RegistryManager()

RegistryManager(String connectionString)

Constructor to create instance from connection string

public RegistryManager(String connectionString)

参数

connectionString
String

The iot hub connection string

RegistryManager(String connectionString, RegistryManagerOptions options)

Constructor to create instance from connection string

public RegistryManager(String connectionString, RegistryManagerOptions options)

参数

connectionString
String

The iot hub connection string

options
RegistryManagerOptions

The connection options to use when connecting to the service.

RegistryManager(String hostName, AzureSasCredential azureSasCredential)

Create a new RegistryManager instance.

public RegistryManager(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.

RegistryManager(String hostName, AzureSasCredential azureSasCredential, RegistryManagerOptions options)

Create a new RegistryManager instance.

public RegistryManager(String hostName, AzureSasCredential azureSasCredential, RegistryManagerOptions 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
RegistryManagerOptions

The connection options to use when connecting to the service.

RegistryManager(String hostName, TokenCredential credential)

Create a new RegistryManager instance.

public RegistryManager(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. The provided tokens must be Json Web Tokens.

RegistryManager(String hostName, TokenCredential credential, RegistryManagerOptions options)

Create a new RegistryManager instance.

public RegistryManager(String hostName, TokenCredential credential, RegistryManagerOptions 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. The provided tokens must be Json Web Tokens.

options
RegistryManagerOptions

The connection options to use when connecting to the service.

适用于