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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기