Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 2.01 KB

deviceinformation_createwatcher_990788373.md

File metadata and controls

33 lines (23 loc) · 2.01 KB
-api-id -api-type
M:Windows.Devices.Enumeration.DeviceInformation.CreateWatcher(System.String,Windows.Foundation.Collections.IIterable{System.String},Windows.Devices.Enumeration.DeviceInformationKind)
winrt method

Windows.Devices.Enumeration.DeviceInformation.CreateWatcher

-description

Creates a DeviceWatcher for devices matching the specified Advanced Query Syntax (AQS) string, the specified collection of properties, and the kind of devices.

-parameters

-param aqsFilter

An AQS 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.

-param additionalProperties

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.

-param kind

The specific types of devices the DeviceWatcher is interested in.

-returns

The created DeviceWatcher.

-remarks

-examples

-see-also

CreateWatcher, CreateWatcher(DeviceClass), CreateWatcher(String), CreateWatcher(String, IIterable(String))