你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DeviceAuthenticationWithX509Certificate 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 DeviceAuthenticationWithX509Certificate 类的新实例。
public DeviceAuthenticationWithX509Certificate (string deviceId, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Cryptography.X509Certificates.X509Certificate2Collection chainCertificates = default);
new Microsoft.Azure.Devices.Client.DeviceAuthenticationWithX509Certificate : string * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.X509Certificates.X509Certificate2Collection -> Microsoft.Azure.Devices.Client.DeviceAuthenticationWithX509Certificate
Public Sub New (deviceId As String, certificate As X509Certificate2, Optional chainCertificates As X509Certificate2Collection = Nothing)
参数
- deviceId
- String
设备标识符。
- certificate
- X509Certificate2
“X.509 证书”。
- chainCertificates
- X509Certificate2Collection
设备证书链中的证书。