DeviceInformation.FindAllAsync DeviceInformation.FindAllAsync DeviceInformation.FindAllAsync DeviceInformation.FindAllAsync DeviceInformation.FindAllAsync Method

Definition

Overloads

FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync()

Enumerates all DeviceInformation objects.

FindAllAsync(DeviceClass) FindAllAsync(DeviceClass) FindAllAsync(DeviceClass) FindAllAsync(DeviceClass) FindAllAsync(DeviceClass)

Enumerates DeviceInformation objects of the specified class.

FindAllAsync(String) FindAllAsync(String) FindAllAsync(String) FindAllAsync(String) FindAllAsync(String)

Enumerates DeviceInformation objects matching the specified Advanced Query Syntax (AQS) device interface selector string.

FindAllAsync(String, IIterable<String>) FindAllAsync(String, IIterable<String>) FindAllAsync(String, IIterable<String>) FindAllAsync(String, IIterable<String>) FindAllAsync(String, IIterable<String>)

Enumerates DeviceInformation objects matching the specified Advanced Query Syntax (AQS) device interface selector string and including the specified collection of properties.

FindAllAsync(String, IIterable<String>, DeviceInformationKind) FindAllAsync(String, IIterable<String>, DeviceInformationKind) FindAllAsync(String, IIterable<String>, DeviceInformationKind) FindAllAsync(String, IIterable<String>, DeviceInformationKind) FindAllAsync(String, IIterable<String>, DeviceInformationKind)

Enumerates DeviceInformation objects matching the specified Advanced Query Syntax (AQS) device interface selector string, the device kind, and including the specified collection of properties.

FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync()

Enumerates all DeviceInformation objects.

public : static IAsyncOperation<DeviceInformationCollection> FindAllAsync()
static IAsyncOperation<DeviceInformationCollection> FindAllAsync() const;
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync()
Public Shared Function FindAllAsync() As IAsyncOperation(Of DeviceInformationCollection)
Windows.Devices.Enumeration.DeviceInformation.findAllAsync().done( /* Your success and error handlers */ );

Returns

See also

FindAllAsync(DeviceClass) FindAllAsync(DeviceClass) FindAllAsync(DeviceClass) FindAllAsync(DeviceClass) FindAllAsync(DeviceClass)

Enumerates DeviceInformation objects of the specified class.

public : static IAsyncOperation<DeviceInformationCollection> FindAllAsync(DeviceClass deviceClass)
static IAsyncOperation<DeviceInformationCollection> FindAllAsync(DeviceClass deviceClass) const;
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync(DeviceClass deviceClass)
Public Shared Function FindAllAsync(deviceClass As DeviceClass) As IAsyncOperation(Of DeviceInformationCollection)
Windows.Devices.Enumeration.DeviceInformation.findAllAsync(deviceClass).done( /* Your success and error handlers */ );

Parameters

deviceClass
DeviceClass DeviceClass DeviceClass

The class of devices to enumerate.

Returns

See also

FindAllAsync(String) FindAllAsync(String) FindAllAsync(String) FindAllAsync(String) FindAllAsync(String)

Enumerates DeviceInformation objects matching the specified Advanced Query Syntax (AQS) device interface selector string.

public : static IAsyncOperation<DeviceInformationCollection> FindAllAsync(Platform::String aqsFilter)
static IAsyncOperation<DeviceInformationCollection> FindAllAsync(winrt::hstring aqsFilter) const;
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync(String aqsFilter)
Public Shared Function FindAllAsync(aqsFilter As String) As IAsyncOperation(Of DeviceInformationCollection)
Windows.Devices.Enumeration.DeviceInformation.findAllAsync(aqsFilter).done( /* Your success and error handlers */ );

Parameters

aqsFilter
String String String

An AQS device interface selector string that filters the DeviceInformation objects to enumerate. Typically this string is retrieved from the GetDeviceSelector method of a class that interacts with devices. For example, GetDeviceSelector retrieves the string for the StorageDevice class.

Returns

Remarks

Important

This method is not available using JavaScript. If you try to use it, your code will instead call FindAllAsync(DeviceClass) with an invalid class and return a collection with all devices. Instead, you should use FindAllAsync(String, IIterable(String) with null as the second parameter if no other properties are needed.

See also

FindAllAsync(String, IIterable<String>) FindAllAsync(String, IIterable<String>) FindAllAsync(String, IIterable<String>) FindAllAsync(String, IIterable<String>) FindAllAsync(String, IIterable<String>)

Enumerates DeviceInformation objects matching the specified Advanced Query Syntax (AQS) device interface selector string and including the specified collection of properties.

public : static IAsyncOperation<DeviceInformationCollection> FindAllAsync(Platform::String aqsFilter, IIterable<Platform::String> additionalProperties)
static IAsyncOperation<DeviceInformationCollection> FindAllAsync(winrt::hstring aqsFilter, IIterable<winrt::hstring> additionalProperties) const;
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync(String aqsFilter, IEnumerable<String> additionalProperties)
Public Shared Function FindAllAsync(aqsFilter As String, additionalProperties As IEnumerable(Of String)) As IAsyncOperation(Of DeviceInformationCollection)
Windows.Devices.Enumeration.DeviceInformation.findAllAsync(aqsFilter, additionalProperties).done( /* Your success and error handlers */ );

Parameters

aqsFilter
String String String

An AQS device interface selector string that filters the DeviceInformation objects to enumerate. Typically this string is retrieved from the GetDeviceSelector method of a class that interacts with devices. For example, GetDeviceSelector retrieves the string for the StorageDevice class.

additionalProperties
IEnumerable<String> IEnumerable<String> IEnumerable<String>

An iterable list of additional properties to include in the Properties property of the DeviceInformation objects in the enumeration results. For more info on what the properties represent, see Device information properties.

Returns

See also

FindAllAsync(String, IIterable<String>, DeviceInformationKind) FindAllAsync(String, IIterable<String>, DeviceInformationKind) FindAllAsync(String, IIterable<String>, DeviceInformationKind) FindAllAsync(String, IIterable<String>, DeviceInformationKind) FindAllAsync(String, IIterable<String>, DeviceInformationKind)

Enumerates DeviceInformation objects matching the specified Advanced Query Syntax (AQS) device interface selector string, the device kind, and including the specified collection of properties.

public : static IAsyncOperation<DeviceInformationCollection> FindAllAsync(Platform::String aqsFilter, IIterable<Platform::String> additionalProperties, DeviceInformationKind kind)
static IAsyncOperation<DeviceInformationCollection> FindAllAsync(winrt::hstring aqsFilter, IIterable<winrt::hstring> additionalProperties, DeviceInformationKind kind) const;
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync(String aqsFilter, IEnumerable<String> additionalProperties, DeviceInformationKind kind)
Public Shared Function FindAllAsync(aqsFilter As String, additionalProperties As IEnumerable(Of String), kind As DeviceInformationKind) As IAsyncOperation(Of DeviceInformationCollection)
Windows.Devices.Enumeration.DeviceInformation.findAllAsync(aqsFilter, additionalProperties, kind).done( /* Your success and error handlers */ );

Parameters

aqsFilter
String String String

An AQS device interface selector string that filters the DeviceInformation objects to enumerate. Typically this string is retrieved from the GetDeviceSelector method of a class that interacts with devices. For example, GetDeviceSelector retrieves the string for the StorageDevice class.

additionalProperties
IEnumerable<String> IEnumerable<String> IEnumerable<String>

An iterable list of additional properties to include in the Properties property of the DeviceInformation objects in the enumeration results. For more info on what the properties represent, see Device information properties.

kind
DeviceInformationKind DeviceInformationKind DeviceInformationKind

The specific type of device to find.

Returns

See also