RegistryManager.GetDevicesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應