Partager via


AuthenticationMethodFactory.CreateAuthenticationWithSharedAccessPolicyKey Méthode

Définition

Méthode factory pour créer un objet ServiceAuthenticationWithSharedAccessPolicyKey

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

Paramètres

policyName
String

PolicyName

key
String

SharedAccessKeyValue

Retours

un objet AuthenticationMethod

S’applique à