Usb​Descriptor Usb​Descriptor Usb​Descriptor Usb​Descriptor Class


Provides information about the type of descriptor, its size (in bytes), and gets the descriptor data.

public : sealed class UsbDescriptor : IUsbDescriptorpublic sealed class UsbDescriptor : IUsbDescriptorPublic NotInheritable Class UsbDescriptor Implements IUsbDescriptor// You can use this class in JavaScript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


A USB device provides information about itself in data structures called USB descriptors. See section 9.5 of the Universal Serial Bus (USB) specification.


DescriptorType DescriptorType DescriptorType DescriptorType

Gets the type of descriptor.

public : byte DescriptorType { get; }public byte DescriptorType { get; }Public ReadOnly Property DescriptorType As byte// You can use this property in JavaScript.
byte byte byte byte

The type of descriptor.

Length Length Length Length

Gets the length of the descriptor.

public : byte Length { get; }public byte Length { get; }Public ReadOnly Property Length As byte// You can use this property in JavaScript.
byte byte byte byte

The length of the descriptor.


ReadDescriptorBuffer(IBuffer) ReadDescriptorBuffer(IBuffer) ReadDescriptorBuffer(IBuffer) ReadDescriptorBuffer(IBuffer)

Reads descriptor data in the caller-supplied buffer.

public : void ReadDescriptorBuffer(IBuffer buffer)public void ReadDescriptorBuffer(IBuffer buffer)Public Function ReadDescriptorBuffer(buffer As IBuffer) As void// You can use this method in JavaScript.
IBuffer IBuffer IBuffer IBuffer

A caller-supplied buffer that receives descriptor data.

See Also