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

RegistryManager.GetDevicesAsync 方法

定义

重载

GetDevicesAsync(Int32)
已过时.

从每个 IoT 中心分区检索指定数量的设备。 这是一个近似值,而不是一个明确的列表。 结果不排序。

GetDevicesAsync(Int32, CancellationToken)
已过时.

从每个 IoT 中心分区检索指定数量的设备。 这是一个近似值,而不是一个明确的列表。 结果不排序。

GetDevicesAsync(Int32)

注意

Use CreateQuery("select * from devices", pageSize);

从每个 IoT 中心分区检索指定数量的设备。 这是一个近似值,而不是一个明确的列表。 结果不排序。

[System.Obsolete("Use CreateQuery("select * from devices", pageSize);")]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device>> GetDevicesAsync (int maxCount);
[<System.Obsolete("Use CreateQuery("select * from devices", pageSize);")>]
abstract member GetDevicesAsync : int -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Devices.Device>>
override this.GetDevicesAsync : int -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Devices.Device>>
Public Overridable Function GetDevicesAsync (maxCount As Integer) As Task(Of IEnumerable(Of Device))

参数

maxCount
Int32

返回

设备列表。

属性

适用于

GetDevicesAsync(Int32, CancellationToken)

注意

Use CreateQuery("select * from devices", pageSize);

从每个 IoT 中心分区检索指定数量的设备。 这是一个近似值,而不是一个明确的列表。 结果不排序。

[System.Obsolete("Use CreateQuery("select * from devices", pageSize);")]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Devices.Device>> GetDevicesAsync (int maxCount, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use CreateQuery("select * from devices", pageSize);")>]
abstract member GetDevicesAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Devices.Device>>
override this.GetDevicesAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Devices.Device>>
Public Overridable Function GetDevicesAsync (maxCount As Integer, cancellationToken As CancellationToken) As Task(Of IEnumerable(Of Device))

参数

maxCount
Int32
cancellationToken
CancellationToken

返回

设备列表。

属性

适用于