Usb​Descriptor Usb​Descriptor Usb​Descriptor Class

Definition

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
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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

Properties

DescriptorType DescriptorType DescriptorType

Gets the type of descriptor.

public byte DescriptorType { get; }public byte DescriptorType { get; }Public ReadOnly Property DescriptorType As byte
Value
byte byte byte

The type of descriptor.

Attributes

Length Length Length

Gets the length of the descriptor.

public byte Length { get; }public byte Length { get; }Public ReadOnly Property Length As byte
Value
byte byte byte

The length of the descriptor.

Attributes

Methods

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
Parameters
buffer
IBuffer IBuffer IBuffer

A caller-supplied buffer that receives descriptor data.

Attributes

See Also