共用方式為


HidDevice.GetDeviceSelector 方法

定義

多載

GetDeviceSelector(UInt16, UInt16)

根據指定的 usagePageusageId,擷取 AQS) 字串 (進階查詢語法。

GetDeviceSelector(UInt16, UInt16, UInt16, UInt16)

根據指定的usagePage、usageIdvendorIdproductId,擷取 AQS) 字串 (進階查詢語法。

GetDeviceSelector(UInt16, UInt16)

根據指定的 usagePageusageId,擷取 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 裝置最上層集合的使用識別碼。

傳回

String

Platform::String

winrt::hstring

代表裝置選取器 (AQS) 字串的進階查詢語法。

屬性

適用於

GetDeviceSelector(UInt16, UInt16, UInt16, UInt16)

根據指定的usagePage、usageIdvendorIdproductId,擷取 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

識別產品。

傳回

String

Platform::String

winrt::hstring

代表裝置選取器 (AQS) 字串的進階查詢語法。

屬性

適用於