RegistryManager.createFromConnectionString 方法

定义

重载

createFromConnectionString(String connectionString)

Static constructor to create instance from connection string

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>because this method declares a thrown IOException even though it never throws an IOException. Users are recommended to use <xref uid="com.microsoft.azure.sdk.iot.service.RegistryManager.RegistryManager(String)" data-throw-if-not-resolved="false" data-raw-source="RegistryManager(String)"></xref> instead since it does not declare this exception even though it constructs the same RegistryManager. </p>

</xrefdescription>

createFromConnectionString(String connectionString, RegistryManagerOptions options)

Static constructor to create instance from connection string

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>because this method declares a thrown IOException even though it never throws an IOException. Users are recommended to use <xref uid="com.microsoft.azure.sdk.iot.service.RegistryManager.RegistryManager(String,RegistryManagerOptions)" data-throw-if-not-resolved="false" data-raw-source="RegistryManager(String, RegistryManagerOptions)"></xref> instead since it does not declare this exception even though it constructs the same RegistryManager. </p>

</xrefdescription>

createFromConnectionString(String connectionString)

Static constructor to create instance from connection string

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>because this method declares a thrown IOException even though it never throws an IOException. Users are recommended to use <xref uid="com.microsoft.azure.sdk.iot.service.RegistryManager.RegistryManager(String)" data-throw-if-not-resolved="false" data-raw-source="RegistryManager(String)"></xref> instead since it does not declare this exception even though it constructs the same RegistryManager. </p>

</xrefdescription>

public static RegistryManager createFromConnectionString(String connectionString)

参数

connectionString
String

The iot hub connection string

返回

The instance of RegistryManager

例外

IOException

This exception is never thrown.

createFromConnectionString(String connectionString, RegistryManagerOptions options)

Static constructor to create instance from connection string

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>because this method declares a thrown IOException even though it never throws an IOException. Users are recommended to use <xref uid="com.microsoft.azure.sdk.iot.service.RegistryManager.RegistryManager(String,RegistryManagerOptions)" data-throw-if-not-resolved="false" data-raw-source="RegistryManager(String, RegistryManagerOptions)"></xref> instead since it does not declare this exception even though it constructs the same RegistryManager. </p>

</xrefdescription>

public static RegistryManager createFromConnectionString(String connectionString, RegistryManagerOptions options)

参数

connectionString
String

The iot hub connection string

options
RegistryManagerOptions

The connection options to use when connecting to the service.

返回

The instance of RegistryManager

例外

IOException

This exception is never thrown.

适用于