RegistryManager.QueryDevicesAsync Method
Namespace: Microsoft.Azure.Devices
Assembly: Microsoft.Azure.Devices (in Microsoft.Azure.Devices.dll)
Overload List
| Name | Description | |
|---|---|---|
![]() |
QueryDevicesAsync(IEnumerable<String>, Int32) | Retrieves specified number of devices matching supplied tags. Results are not ordered. |
![]() |
QueryDevicesAsync(IEnumerable<String>, Int32, CancellationToken) | Retrieves specified number of devices matching supplied tags. Results are not ordered. |
See Also
RegistryManager Class
Microsoft.Azure.Devices Namespace
Return to top
RegistryManager.QueryDevicesAsync Method (IEnumerable<String>, Int32)
Retrieves specified number of devices matching supplied tags. Results are not ordered.
Syntax
public abstract Task<IEnumerable<Device>> QueryDevicesAsync(
IEnumerable<string> tags,
int maxCount
)
public:
virtual Task<IEnumerable<Device^>^>^ QueryDevicesAsync(
IEnumerable<String^>^ tags,
int maxCount
) abstract
Parameters
tags
Type: System.Collections.Generic.IEnumerable<String>Tags to match on devices
maxCount
Type: System.Int32Maximum number of devices to return
Return Value
Type: System.Threading.Tasks.Task<IEnumerable<Device>>
The list of matching devices
Return to top
RegistryManager.QueryDevicesAsync Method (IEnumerable<String>, Int32, CancellationToken)
Retrieves specified number of devices matching supplied tags. Results are not ordered.
Syntax
public abstract Task<IEnumerable<Device>> QueryDevicesAsync(
IEnumerable<string> tags,
int maxCount,
CancellationToken cancellationToken
)
public:
virtual Task<IEnumerable<Device^>^>^ QueryDevicesAsync(
IEnumerable<String^>^ tags,
int maxCount,
CancellationToken cancellationToken
) abstract
Parameters
tags
Type: System.Collections.Generic.IEnumerable<String>Tags to match on devices
maxCount
Type: System.Int32Maximum number of devices to return
cancellationToken
Type: System.Threading.CancellationTokenTask cancellation token
Return Value
Type: System.Threading.Tasks.Task<IEnumerable<Device>>
The list of matching devices
Return to top
.jpeg)