LampArray.GetDeviceSelector 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取包含系統上所有 LampArray 裝置的 AQS) 字串 (進階查詢語法。
public:
static Platform::String ^ GetDeviceSelector();
static winrt::hstring GetDeviceSelector();
public static string GetDeviceSelector();
function getDeviceSelector()
Public Shared Function GetDeviceSelector () As String
傳回
包含系統上所有 LampArray 裝置的 AQS 字串。
範例
示範如何使用Windows.Devices.Lights 和 Windows.Devices.Lights.Effects API 來控制周邊裝置的 RGB 光源。
示範如何從桌面畫面擷取單一代表性色彩,並用它來在連接的 RGB 裝置上亮起 LED 燈。
備註
您可以將此字串與 DeviceInformation.FindAllAsync 方法或 DeviceWatcher 搭配使用,以取得這些 LampArrays 的 DeviceInformation 物件