Share via


DeviceInformation.FindAll method (Handheld 8)

2/18/2014

[Microsoft.Embedded.Devices.Enumeration may be altered or unavailable for releases after Windows Embedded 8 Handheld. Use Windows.Devices.Enumeration instead.]

This method enumerates DeviceInformation objects matching the specified Advanced Query Syntax (AQS) string.

Syntax

public static DeviceInformationCollection FindAll(string queryString)
Public Shared Function FindAll(queryString asString) as DeviceInformationCollection
public:
static DeviceInformationCollection^ FindAll(String^ queryString)

Parameters

  • queryString
    Type: System.String [.NET] | Platform::String [C++]

    An ACS string that filters the DeviceInformation objects to enumerate. Typically this string is retrieved from the GetDeviceSelector method of a class that interacts with the device. For example, BarcodeScanner.GetDeviceSelector

Return value

Type: Microsoft.Embedded.Devices.Enumeration.DeviceInformationCollection

When the method returns, it returns a DeviceInformationCollection.

Exceptions

System.ArgumentException

Remarks

An ArgumentException results when no devices are registered with the GUID specified in the query string, or the query string is invalid.

See Also

Reference

DeviceInformation class