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

EnrollmentGroupsClient.GetAttestationAsync(String, CancellationToken) 方法

定义

获取注册组的证明信息。

public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Service.AttestationMechanism> GetAttestationAsync (string enrollmentGroupId, System.Threading.CancellationToken cancellationToken = default);
member this.GetAttestationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Service.AttestationMechanism>
Public Function GetAttestationAsync (enrollmentGroupId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AttestationMechanism)

参数

enrollmentGroupId
String

注册组的 ID。

cancellationToken
CancellationToken

取消标记。

返回

注册组的证明机制。

例外

Microsoft.Azure.Devices.Provisioning.Service.DeviceProvisioningServiceException

如果服务无法检索提供的 enrollmentGroupId的注册组证明信息。

如果提供的 enrollmentGroupId 为 null。

如果提供的 enrollmentGroupId 为空或空格。

如果服务无法检索提供的 enrollmentGroupId的注册组证明信息。

如果提供的 cancellationToken 已请求取消。

适用于