你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceAuthenticationWithSharedAccessPolicyToken 类

定义

使用共享访问策略令牌的身份验证方法。

public sealed class ServiceAuthenticationWithSharedAccessPolicyToken : Microsoft.Azure.Devices.IAuthenticationMethod
type ServiceAuthenticationWithSharedAccessPolicyToken = class
    interface IAuthenticationMethod
Public NotInheritable Class ServiceAuthenticationWithSharedAccessPolicyToken
Implements IAuthenticationMethod
继承
ServiceAuthenticationWithSharedAccessPolicyToken
实现

构造函数

ServiceAuthenticationWithSharedAccessPolicyToken(String, String)

初始化 ServiceAuthenticationWithSharedAccessPolicyToken 类的新实例。

属性

PolicyName

策略的名称

Token

SAS 令牌

方法

Populate(IotHubConnectionStringBuilder)

使用策略名称和令牌汇报指定的连接字符串生成器

适用于