Compartir a través de


Enumerating devices (XAML)

Purpose

The Windows.Devices.Enumeration and Windows.Devices.Enumeration.Pnp namespaces enable you to enumerate devices. The following are typical reasons to enumerate devices:

  • Selecting the device to be used by an application. For example, a voice chat application may use the API to present a list of microphones or webcams for the user to select from, or a photo import app may use the API to present a list of removable storage devices for the user to select from.
  • Device discovery and notifications about devices, for apps that use them, such as Windows Store device app.

In this section

Topic Description

Quickstart: enumerating commonly used devices

Here we show you how to do a one-time enumeration of commonly used devices using FindAllAsync.

How to get notifications if devices are added, removed, or changed

This tutorial shows you how to enumerate devices dynamically. Then, your app can receive notification if devices are added or removed, or if device properties change.

 

Developer audience

Developers of Windows Store apps

Roadmap for Windows Runtime apps using C# or Visual Basic

Roadmap for Windows Runtime apps using JavaScript

Roadmap for Windows Runtime apps using C++