UsbDevice.GetDeviceSelector(UInt32, UInt32) | getDeviceSelector(UInt32, UInt32) method
Gets an Advanced Query Syntax (AQS) string, based on vendor and product identifiers, specified by the app. The app passes the string to DeviceInformation.FindAllAsync in order to find a specific type of USB device.
Syntax
Public Shared Function GetDeviceSelector( vendorId As UInteger, productId As UInteger ) As String
Parameters
- vendorId
-
Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]
Specifies the vendor identifier for the device as assigned by the USB specification committee. Possible values are 0 through 0xffff.
- productId
-
Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]
Specifies the product identifier. This value is assigned by the manufacturer and is device-specific. Possible values are 0 through 0xffff.
Return value
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]
String formatted as an AQS query.
Requirements
Minimum supported client | Windows 8.1 |
---|---|
Minimum supported server | Windows Server 2012 R2 |
Namespace |
|
Metadata |
|
See also