HidDevice.GetDeviceSelector 方法

定义

重载

GetDeviceSelector(UInt16, UInt16)

根据给定的 usagePageusageId 检索 AQS) 字符串 (高级查询语法。

GetDeviceSelector(UInt16, UInt16, UInt16, UInt16)

根据给定的 usagePageusageIdvendorIdproductId 检索 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)

根据给定的 usagePageusageIdvendorIdproductId 检索 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) 字符串。

属性

适用于