Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.62 KB

windows_devices_enumeration_pnp.md

File metadata and controls

26 lines (17 loc) · 1.62 KB
-api-id -api-type
N:Windows.Devices.Enumeration.Pnp
winrt namespace

Windows.Devices.Enumeration.Pnp

-description

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.

Provides classes for enumerating a collection of Pnp device objects, and event handlers for monitoring changes to the objects in the collection asynchronously.

The following are typical uses of the Windows.Devices.Enumeration.Pnp API.

  • Building a user interface for selecting the device to be used by an application. For example, a voice chat application may present a list of microphones or webcams for the user to select from, or a photo import application may present a list of removable storage devices for the user to import photos from.
  • Device discovery and notifications about devices for apps that use them (see Windows Hardware Dev Center).

-remarks

-examples

-see-also