Dela via


HidDevice.GetDeviceSelector Method

Definition

Overloads

GetDeviceSelector(UInt16, UInt16)

Retrieves an Advanced Query Syntax (AQS) string based on the given usagePage and usageId.

GetDeviceSelector(UInt16, UInt16, UInt16, UInt16)

Retrieves an Advanced Query Syntax (AQS) string based on the given usagePage, usageId, vendorId, and productId.

GetDeviceSelector(UInt16, UInt16)

Retrieves an Advanced Query Syntax (AQS) string based on the given usagePage and usageId.

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

Parameters

usagePage
UInt16

unsigned short

uint16_t

Specifies the usage page of the top-level collection for the given HID device.

usageId
UInt16

unsigned short

uint16_t

Specifies the usage identifier of the top-level collection for the given HID device.

Returns

String

Platform::String

winrt::hstring

An Advanced Query Syntax (AQS) string that represents a device selector.

Attributes

Applies to

GetDeviceSelector(UInt16, UInt16, UInt16, UInt16)

Retrieves an Advanced Query Syntax (AQS) string based on the given usagePage, usageId, vendorId, and productId.

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

Parameters

usagePage
UInt16

unsigned short

uint16_t

Specifies the usage page of the top-level collection for the given HID device.

usageId
UInt16

unsigned short

uint16_t

Specifies the usage identifier of the top-level collection for the given HID device.

vendorId
UInt16

unsigned short

uint16_t

Identifies the device vendor.

productId
UInt16

unsigned short

uint16_t

Identifies the product.

Returns

String

Platform::String

winrt::hstring

An Advanced Query Syntax (AQS) string that represents a device selector.

Attributes

Applies to