语言

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

AuthenticationMethodFactory.CreateAuthenticationWithToken Method

Definition

Overloads

Name Description
CreateAuthenticationWithToken(String, String)

Creates a DeviceAuthenticationWithToken instance based on the parameters.

CreateAuthenticationWithToken(String, String, String)

Creates a ModuleAuthenticationWithToken instance based on the parameters.

CreateAuthenticationWithToken(String, String)

Creates a DeviceAuthenticationWithToken instance based on the parameters.

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

Parameters

deviceId
String

Device Identifier.

token
String

Security token associated with the device.

Returns

A new instance of the DeviceAuthenticationWithToken class.

Applies to

CreateAuthenticationWithToken(String, String, String)

Creates a ModuleAuthenticationWithToken instance based on the parameters.

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

Parameters

deviceId
String

Device Identifier.

moduleId
String

Module Identifier.

token
String

Security token associated with the device.

Returns

A new instance of the ModuleAuthenticationWithToken class.

Applies to