RegistryManager.createFromConnectionString 方法

定义

重载

createFromConnectionString(String connectionString)

Static constructor to create instance from connection string

createFromConnectionString(String connectionString, RegistryManagerOptions options)

Static constructor to create instance from connection string

createFromConnectionString(String connectionString)

Static constructor to create instance from connection string

public static RegistryManager createFromConnectionString(String connectionString)

参数

connectionString
String

The iot hub connection string

返回

The instance of RegistryManager

例外

IOException

This exception is thrown if the object creation failed

createFromConnectionString(String connectionString, RegistryManagerOptions options)

Static constructor to create instance from connection string

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. May be null if no custom options will be used.

返回

The instance of RegistryManager

例外

IOException

This exception is thrown if the object creation failed

适用于