Compartilhar via


AuthenticationMethodFactory.CreateAuthenticationWithSharedAccessPolicyKey Método

Definição

Cria uma DeviceAuthenticationWithSharedAccessPolicyKey instância com base nos parâmetros.

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

Parâmetros

deviceId
String

Identificador do dispositivo.

policyName
String

Nome da política de acesso compartilhado a ser usada.

key
String

Chave associada à política de acesso compartilhado.

Retornos

Uma nova instância da classe DeviceAuthenticationWithSharedAccessPolicyKey.

Aplica-se a