你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AuthenticationMethodFactory.CreateAuthenticationWithRegistrySymmetricKey 方法

定义

重载

CreateAuthenticationWithRegistrySymmetricKey(String, String)

DeviceAuthenticationWithRegistrySymmetricKey基于参数创建 实例。

CreateAuthenticationWithRegistrySymmetricKey(String, String, String)

ModuleAuthenticationWithRegistrySymmetricKey基于参数创建 实例。

CreateAuthenticationWithRegistrySymmetricKey(String, String)

DeviceAuthenticationWithRegistrySymmetricKey基于参数创建 实例。

public static Microsoft.Azure.Devices.Client.IAuthenticationMethod CreateAuthenticationWithRegistrySymmetricKey (string deviceId, string key);
static member CreateAuthenticationWithRegistrySymmetricKey : string * string -> Microsoft.Azure.Devices.Client.IAuthenticationMethod
Public Shared Function CreateAuthenticationWithRegistrySymmetricKey (deviceId As String, key As String) As IAuthenticationMethod

参数

deviceId
String

设备标识符。

key
String

与设备注册表中的设备关联的项。

返回

DeviceAuthenticationWithRegistrySymmetricKey 类的新实例。

适用于

CreateAuthenticationWithRegistrySymmetricKey(String, String, String)

ModuleAuthenticationWithRegistrySymmetricKey基于参数创建 实例。

public static Microsoft.Azure.Devices.Client.IAuthenticationMethod CreateAuthenticationWithRegistrySymmetricKey (string deviceId, string moduleId, string key);
static member CreateAuthenticationWithRegistrySymmetricKey : string * string * string -> Microsoft.Azure.Devices.Client.IAuthenticationMethod
Public Shared Function CreateAuthenticationWithRegistrySymmetricKey (deviceId As String, moduleId As String, key As String) As IAuthenticationMethod

参数

deviceId
String

设备标识符。

moduleId
String

模块标识符。

key
String

与设备注册表中的模块关联的项。

返回

ModuleAuthenticationWithRegistrySymmetricKey 类的新实例。

适用于