共用方式為


ServiceAuthenticationWithSharedAccessPolicyToken Class

Definition

Authentication method that uses a shared access policy token.

public sealed class ServiceAuthenticationWithSharedAccessPolicyToken : Microsoft.Azure.Devices.IAuthenticationMethod
type ServiceAuthenticationWithSharedAccessPolicyToken = class
    interface IAuthenticationMethod
Public NotInheritable Class ServiceAuthenticationWithSharedAccessPolicyToken
Implements IAuthenticationMethod
Inheritance
ServiceAuthenticationWithSharedAccessPolicyToken
Implements

Constructors

ServiceAuthenticationWithSharedAccessPolicyToken(String, String)

Initializes a new instance of the ServiceAuthenticationWithSharedAccessPolicyToken class.

Properties

PolicyName

The name of the policy

Token

The SAS token

Methods

Populate(IotHubConnectionStringBuilder)

Updates the specified connection string builder with policy name and token

Applies to