VendorId Property
VendorId
A hardware identifier indicating the vendor of this device.
C#
public short VendorId { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int16 |
Implements
Remarks
The Vendor ID is an identifier defined by the USB specification. Compliant USB devices, such as the YubiKey,
will have a unique vendor identifier assigned to them. In Yubico's case, this value is 0x1050
. Other
manufacturers should have different numbers. No other manufacturer should create a device with a vendor ID
of 0x1050
, however nothing prevents a malicious or otherwise non-compliant device from existing. So, while
you can make some assumptions about a device that matches your expected vendor ID, other steps should be
taken to verify that you are communicating with a genuine device. These steps will be device dependent and
are out of the scope of this document.