RegistryManager.GetDevicesAsync Method

Definition

Overloads

GetDevicesAsync(Int32)
Obsolete.

Retrieves specified number of devices from every IoT hub partition. This is an approximation and not a definitive list. Results are not ordered.

GetDevicesAsync(Int32, CancellationToken)
Obsolete.

Retrieves specified number of devices from every IoT hub partition. This is an approximation and not a definitive list. Results are not ordered.

GetDevicesAsync(Int32)

Caution

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

Retrieves specified number of devices from every IoT hub partition. This is an approximation and not a definitive list. Results are not ordered.

[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))

Parameters

maxCount
Int32

Returns

The list of devices.

Attributes

Applies to

GetDevicesAsync(Int32, CancellationToken)

Caution

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

Retrieves specified number of devices from every IoT hub partition. This is an approximation and not a definitive list. Results are not ordered.

[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))

Parameters

maxCount
Int32
cancellationToken
CancellationToken

Returns

The list of devices.

Attributes

Applies to