语言

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

DeviceAuthenticationWithSharedAccessPolicyKey Class

Definition

Authentication method that uses a shared access policy key.

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

Constructors

Name Description
DeviceAuthenticationWithSharedAccessPolicyKey(String, String, String)

Initializes a new instance of the DeviceAuthenticationWithSharedAccessPolicyKey class.

Properties

Name Description
DeviceId

Gets or sets the device identifier.

Key

Gets or sets the key associated with the shared policy.

PolicyName

Name of the shared access policy.

Methods

Name Description
Populate(IotHubConnectionStringBuilder)

Populates a supplied instance based on the properties of the current instance.

Applies to