Share via


PnpObject.FindAllAsync Method

Definition

Overloads

FindAllAsync(PnpObjectType, IIterable<String>)

Important

We no longer recommend that you use the types in the Windows.Devices.Enumeration.Pnp namespace. Instead, the types in the Windows.Devices.Enumeration namespace implement a modern, and better maintained, superset of the functionality of Windows.Devices.Enumeration.Pnp.

The alternative to PnpObjectType is the Windows.Devices.Enumeration.DeviceInformationKind enum, which you can pass as a parameter to Windows.Devices.Enumeration APIs. For example, instead of using PnpObjectType when you create a PnpObjectWatcher, use DeviceInformationKind when you create a DeviceWatcher.

Returns all of the PnP objects of a specified type that match the specified criteria.

FindAllAsync(PnpObjectType, IIterable<String>, String)

Important

We no longer recommend that you use the types in the Windows.Devices.Enumeration.Pnp namespace. Instead, the types in the Windows.Devices.Enumeration namespace implement a modern, and better maintained, superset of the functionality of Windows.Devices.Enumeration.Pnp.

The alternative to PnpObjectType is the Windows.Devices.Enumeration.DeviceInformationKind enum, which you can pass as a parameter to Windows.Devices.Enumeration APIs. For example, instead of using PnpObjectType when you create a PnpObjectWatcher, use DeviceInformationKind when you create a DeviceWatcher.

Returns all of the PnP objects of a specified type that match the specified filter.

FindAllAsync(PnpObjectType, IIterable<String>)

Important

We no longer recommend that you use the types in the Windows.Devices.Enumeration.Pnp namespace. Instead, the types in the Windows.Devices.Enumeration namespace implement a modern, and better maintained, superset of the functionality of Windows.Devices.Enumeration.Pnp.

The alternative to PnpObjectType is the Windows.Devices.Enumeration.DeviceInformationKind enum, which you can pass as a parameter to Windows.Devices.Enumeration APIs. For example, instead of using PnpObjectType when you create a PnpObjectWatcher, use DeviceInformationKind when you create a DeviceWatcher.

Returns all of the PnP objects of a specified type that match the specified criteria.

public:
 static IAsyncOperation<PnpObjectCollection ^> ^ FindAllAsync(PnpObjectType type, IIterable<Platform::String ^> ^ requestedProperties);
/// [Windows.Foundation.Metadata.Overload("FindAllAsync")]
 static IAsyncOperation<PnpObjectCollection> FindAllAsync(PnpObjectType const& type, IIterable<winrt::hstring> const& requestedProperties);
[Windows.Foundation.Metadata.Overload("FindAllAsync")]
public static IAsyncOperation<PnpObjectCollection> FindAllAsync(PnpObjectType type, IEnumerable<string> requestedProperties);
function findAllAsync(type, requestedProperties)
Public Shared Function FindAllAsync (type As PnpObjectType, requestedProperties As IEnumerable(Of String)) As IAsyncOperation(Of PnpObjectCollection)

Parameters

type
PnpObjectType

The type of the PnpObject.

requestedProperties

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

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

Returns

An object that represents the asynchronous operation.

Attributes

See also

Applies to

FindAllAsync(PnpObjectType, IIterable<String>, String)

Important

We no longer recommend that you use the types in the Windows.Devices.Enumeration.Pnp namespace. Instead, the types in the Windows.Devices.Enumeration namespace implement a modern, and better maintained, superset of the functionality of Windows.Devices.Enumeration.Pnp.

The alternative to PnpObjectType is the Windows.Devices.Enumeration.DeviceInformationKind enum, which you can pass as a parameter to Windows.Devices.Enumeration APIs. For example, instead of using PnpObjectType when you create a PnpObjectWatcher, use DeviceInformationKind when you create a DeviceWatcher.

Returns all of the PnP objects of a specified type that match the specified filter.

public:
 static IAsyncOperation<PnpObjectCollection ^> ^ FindAllAsync(PnpObjectType type, IIterable<Platform::String ^> ^ requestedProperties, Platform::String ^ aqsFilter);
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncAqsFilter")]
 static IAsyncOperation<PnpObjectCollection> FindAllAsync(PnpObjectType const& type, IIterable<winrt::hstring> const& requestedProperties, winrt::hstring const& aqsFilter);
[Windows.Foundation.Metadata.Overload("FindAllAsyncAqsFilter")]
public static IAsyncOperation<PnpObjectCollection> FindAllAsync(PnpObjectType type, IEnumerable<string> requestedProperties, string aqsFilter);
function findAllAsync(type, requestedProperties, aqsFilter)
Public Shared Function FindAllAsync (type As PnpObjectType, requestedProperties As IEnumerable(Of String), aqsFilter As String) As IAsyncOperation(Of PnpObjectCollection)

Parameters

type
PnpObjectType

The type of the PnpObject.

requestedProperties

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

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

aqsFilter
String

Platform::String

winrt::hstring

An AQS string that filters the PnP objects that will be returned. Typically, this string is retrieved from the method of a class that interacts with devices.

Returns

An object that represents the asynchronous operation.

Attributes

See also

Applies to