RegistryManager.QueryDevicesAsync Method

 

Namespace:   Microsoft.Azure.Devices
Assembly:  Microsoft.Azure.Devices (in Microsoft.Azure.Devices.dll)

Overload List

Name Description
System_CAPS_pubmethod QueryDevicesAsync(IEnumerable<String>, Int32)

Retrieves specified number of devices matching supplied tags. Results are not ordered.

System_CAPS_pubmethod 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

  • maxCount
    Type: System.Int32

    Maximum 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

  • maxCount
    Type: System.Int32

    Maximum number of devices to return

Return Value

Type: System.Threading.Tasks.Task<IEnumerable<Device>>

The list of matching devices

Return to top