HidDevice.GetDeviceSelector 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetDeviceSelector(UInt16, UInt16) |
根據指定的 usagePage 和 usageId,擷取 AQS) 字串 (進階查詢語法。 |
GetDeviceSelector(UInt16, UInt16, UInt16, UInt16) |
根據指定的usagePage、usageId、vendorId和productId,擷取 AQS) 字串 (進階查詢語法。 |
GetDeviceSelector(UInt16, UInt16)
根據指定的 usagePage 和 usageId,擷取 AQS) 字串 (進階查詢語法。
public:
static Platform::String ^ GetDeviceSelector(unsigned short usagePage, unsigned short usageId);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
static winrt::hstring GetDeviceSelector(uint16_t const& usagePage, uint16_t const& usageId);
[Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
public static string GetDeviceSelector(ushort usagePage, ushort usageId);
function getDeviceSelector(usagePage, usageId)
Public Shared Function GetDeviceSelector (usagePage As UShort, usageId As UShort) As String
參數
- usagePage
-
UInt16
unsigned short
uint16_t
指定指定 HID 裝置最上層集合的使用頁面。
- usageId
-
UInt16
unsigned short
uint16_t
指定指定 HID 裝置最上層集合的使用識別碼。
傳回
代表裝置選取器 (AQS) 字串的進階查詢語法。
- 屬性
適用於
GetDeviceSelector(UInt16, UInt16, UInt16, UInt16)
根據指定的usagePage、usageId、vendorId和productId,擷取 AQS) 字串 (進階查詢語法。
public:
static Platform::String ^ GetDeviceSelector(unsigned short usagePage, unsigned short usageId, unsigned short vendorId, unsigned short productId);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorVidPid")]
static winrt::hstring GetDeviceSelector(uint16_t const& usagePage, uint16_t const& usageId, uint16_t const& vendorId, uint16_t const& productId);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorVidPid")]
public static string GetDeviceSelector(ushort usagePage, ushort usageId, ushort vendorId, ushort productId);
function getDeviceSelector(usagePage, usageId, vendorId, productId)
Public Shared Function GetDeviceSelector (usagePage As UShort, usageId As UShort, vendorId As UShort, productId As UShort) As String
參數
- usagePage
-
UInt16
unsigned short
uint16_t
指定指定 HID 裝置最上層集合的使用頁面。
- usageId
-
UInt16
unsigned short
uint16_t
指定指定 HID 裝置最上層集合的使用識別碼。
- vendorId
-
UInt16
unsigned short
uint16_t
識別裝置廠商。
- productId
-
UInt16
unsigned short
uint16_t
識別產品。
傳回
代表裝置選取器 (AQS) 字串的進階查詢語法。
- 屬性