ProductId Property
ProductId
A hardware identifier indicating the product that this device represents.
public short ProductId { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int16 |
Implements
Remarks
The Product ID is an identifier defined by the USB specification. The product ID is a 16-bit number that can be used to identify and differentiate different products produced by a given vendor. Values for the IDs are determined by the vendor. This means that different manufacturers may produce devices that have the same ID. Product IDs are only expected to be unique within the scope of a vendor.
Product IDs also don't guarantee that devices are the same physical model or product revision - only that the devices behave the same as far as USB communication is concerned. A single device may also expose different product IDs based on its configuration. An example of this behavior is with the YubiKey. The YubiKey is a composite USB device, meaning that it exposes multiple child devices (keyboard, FIDO, and smart card reader). It is possible to configure the YubiKey so that only a subset of those child devices are present. The product ID enumerated by USB will change, depending on which child devices are present.