HidDevice.GetDeviceSelector(UInt16, UInt16) | getDeviceSelector(UInt16, UInt16) method

Applies to Windows and Windows Phone

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

Syntax


var string = Windows.Devices.HumanInterfaceDevice.HidDevice.getDeviceSelector(usagePage, usageId);

Parameters

usagePage

Type: Number [JavaScript] | System.UInt16 [.NET] | uint16 [C++]

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

usageId

Type: Number [JavaScript] | System.UInt16 [.NET] | uint16 [C++]

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

Return value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

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

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.HumanInterfaceDevice
Windows::Devices::HumanInterfaceDevice [C++]

Metadata

Windows.winmd

See also

HidDevice
GetDeviceSelector(UInt16, UInt16, UInt16, UInt16)

 

 

Show:
© 2014 Microsoft