Partager via


AuthenticationMethodFactory.CreateAuthenticationWithSharedAccessPolicyToken Méthode

Définition

Méthode factory pour créer un objet ServiceAuthenticationWithSharedAccessPolicyToken

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

Paramètres

policyName
String

PolicyName

token
String

SharedAccessSignatureToken

Retours

un objet AuthenticationMethod

S’applique à