UsbDeviceDescriptor UsbDeviceDescriptor UsbDeviceDescriptor UsbDeviceDescriptor Class

Derives information from the USB device descriptor of the device. For an explanation of the device descriptor, see Table 9.8 in the Universal Serial Bus Specification.

Syntax

Declaration

public sealed class UsbDeviceDescriptorpublic sealed class UsbDeviceDescriptorPublic NotInheritable Class UsbDeviceDescriptor

Remarks

The UsbDeviceDescriptor class does not include manufacturer, product, and serial number strings that are included in a device-defined descriptor. You can obtain those strings by using the Windows.Devices.Enumeration namespace. For information about a USB device descriptor, see the top portion of this topic: USB device descriptors.

Properties summary

Gets the bcdDeviceRevision field of the USB device descriptor. The value indicates the revision number defined by the device and is a binary-coded decimal number.

Gets the bcdUSB field of the USB device descriptor. The value indicates the version of the USB specification to which the device conforms.

Gets the bMaxPacketSize0 field of the USB device descriptor. The value indicates the maximum packet size, in bytes, for endpoint zero of the device. This value can be 8, 16, 32, or 64.

Gets the bNumConfigurations field of the USB device descriptor. The value indicates the total count of USB configurations supported by the device.

Gets the idProduct field of the USB device descriptor. This value indicates the device-specific product identifier and is assigned by the manufacturer.

Gets the idVendor field of the USB device descriptor. The value indicates the vendor identifier for the device as assigned by the USB specification committee.

Properties

  • BcdDeviceRevision
    BcdDeviceRevision
    BcdDeviceRevision
    BcdDeviceRevision

    Gets the bcdDeviceRevision field of the USB device descriptor. The value indicates the revision number defined by the device and is a binary-coded decimal number.

    public uint BcdDeviceRevision { get; }public uint BcdDeviceRevision { get; }Public ReadOnly Property BcdDeviceRevision As uint

    Property Value

    • uint
      uint
      uint
      uint

      The revision number defined by the device.

  • BcdUsb
    BcdUsb
    BcdUsb
    BcdUsb

    Gets the bcdUSB field of the USB device descriptor. The value indicates the version of the USB specification to which the device conforms.

    public uint BcdUsb { get; }public uint BcdUsb { get; }Public ReadOnly Property BcdUsb As uint

    Property Value

    • uint
      uint
      uint
      uint

      The version of the USB specification to which the device conforms.

  • MaxPacketSize0
    MaxPacketSize0
    MaxPacketSize0
    MaxPacketSize0

    Gets the bMaxPacketSize0 field of the USB device descriptor. The value indicates the maximum packet size, in bytes, for endpoint zero of the device. This value can be 8, 16, 32, or 64.

    public byte MaxPacketSize0 { get; }public byte MaxPacketSize0 { get; }Public ReadOnly Property MaxPacketSize0 As byte

    Property Value

    • byte
      byte
      byte
      byte

      The maximum packet size, in bytes, for endpoint zero of the device.

  • NumberOfConfigurations
    NumberOfConfigurations
    NumberOfConfigurations
    NumberOfConfigurations

    Gets the bNumConfigurations field of the USB device descriptor. The value indicates the total count of USB configurations supported by the device.

    public byte NumberOfConfigurations { get; }public byte NumberOfConfigurations { get; }Public ReadOnly Property NumberOfConfigurations As byte

    Property Value

    • byte
      byte
      byte
      byte

      A number that indicates the total count of USB configurations supported by the device.

  • ProductId
    ProductId
    ProductId
    ProductId

    Gets the idProduct field of the USB device descriptor. This value indicates the device-specific product identifier and is assigned by the manufacturer.

    public uint ProductId { get; }public uint ProductId { get; }Public ReadOnly Property ProductId As uint

    Property Value

    • uint
      uint
      uint
      uint

      The device-defined product identifier.

  • VendorId
    VendorId
    VendorId
    VendorId

    Gets the idVendor field of the USB device descriptor. The value indicates the vendor identifier for the device as assigned by the USB specification committee.

    public uint VendorId { get; }public uint VendorId { get; }Public ReadOnly Property VendorId As uint

    Property Value

    • uint
      uint
      uint
      uint

      The vendor identifier for the device as assigned by the USB specification committee.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute

Details

Assembly

Windows.Devices.Usb.dll