共用方式為


LampArray.GetDeviceSelector 方法

定義

擷取包含系統上所有 LampArray 裝置的 AQS) 字串 (進階查詢語法。

public:
 static Platform::String ^ GetDeviceSelector();
 static winrt::hstring GetDeviceSelector();
public static string GetDeviceSelector();
function getDeviceSelector()
Public Shared Function GetDeviceSelector () As String

傳回

String

Platform::String

winrt::hstring

包含系統上所有 LampArray 裝置的 AQS 字串。

範例

LampArray 範例

示範如何使用Windows.Devices.Lights 和 Windows.Devices.Lights.Effects API 來控制周邊裝置的 RGB 光源。

AutoRGB 範例

示範如何從桌面畫面擷取單一代表性色彩,並用它來在連接的 RGB 裝置上亮起 LED 燈。

備註

您可以將此字串與 DeviceInformation.FindAllAsync 方法或 DeviceWatcher 搭配使用,以取得這些 LampArrays 的 DeviceInformation 物件

適用於

另請參閱