Freigeben über


AuthenticationMethodFactory.CreateAuthenticationWithSharedAccessPolicyKey Methode

Definition

Factory-Methode zum Erstellen eines ServiceAuthenticationWithSharedAccessPolicyKey-Objekts

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

Parameter

policyName
String

PolicyName

key
String

SharedAccessKeyValue

Gibt zurück

ein AuthenticationMethod-Objekt

Gilt für: