AuthenticationMethodFactory.CreateAuthenticationWithSharedAccessPolicyKey Method

Definition

Factory method to create a ServiceAuthenticationWithSharedAccessPolicyKey object

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

Parameters

policyName
String

PolicyName

key
String

SharedAccessKeyValue

Returns

an AuthenticationMethod object

Applies to