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

IotHubResourceOperationsExtensions.ListBySubscriptionAsync 方法

定义

获取订阅中的所有 IoT 中心

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.IotHub.Models.IotHubDescription>> ListBySubscriptionAsync (this Microsoft.Azure.Management.IotHub.IIotHubResourceOperations operations, System.Threading.CancellationToken cancellationToken = default);
static member ListBySubscriptionAsync : Microsoft.Azure.Management.IotHub.IIotHubResourceOperations * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.IotHub.Models.IotHubDescription>>
<Extension()>
Public Function ListBySubscriptionAsync (operations As IIotHubResourceOperations, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of IotHubDescription))

参数

operations
IIotHubResourceOperations

此扩展方法的操作组。

cancellationToken
CancellationToken

取消标记。

返回

注解

获取订阅中的所有 IoT 中心。

适用于