Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.99 KB

displaymonitor_getdeviceselector_838466080.md

File metadata and controls

26 lines (17 loc) · 1.99 KB
-api-id -api-type
M:Windows.Devices.Display.DisplayMonitor.GetDeviceSelector
winrt method

Windows.Devices.Display.DisplayMonitor.GetDeviceSelector

-description

Returns an Advanced Query Syntax (AQS) device interface selector string for the purpose of retrieving device interfaces (rather than devices).

The selector can be used by DeviceInformation.CreateWatcher to watch and enumerate monitor devices on the system. Or it can be used with DeviceInformation.FindAllAsync to retrieve a collection of DeviceInformation objects that describe monitor interfaces (rather than monitor devices). Accessing the DeviceInformation.Id property on one of those objects retrieves a monitor interface identifier, which you can pass to DisplayMonitor.FromInterfaceIdAsync (for details, see the code example for DisplayMonitor.FromInterfaceIdAsync). If you request the System.Devices.DeviceInstanceId additional property from FindAllAsync, then you can call DisplayMonitor.FromIdAsync (for details, see the code example for DisplayMonitor.FromIdAsync).

-returns

An Advanced Query Syntax (AQS) device interface selector string.

-remarks

-see-also

DeviceInformation.CreateWatcher, DeviceInformation.FindAllAsync, DisplayMonitor.FromInterfaceIdAsync

-examples