UsbDescriptor UsbDescriptor UsbDescriptor UsbDescriptor Class

Definition

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

public : sealed class UsbDescriptor : IUsbDescriptor
public sealed class UsbDescriptor : IUsbDescriptor
Public NotInheritable Class UsbDescriptor Implements IUsbDescriptor
// This class does not provide a public constructor.
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 DescriptorType

Gets the type of descriptor.

public : byte DescriptorType { get; }
public byte DescriptorType { get; }
Public ReadOnly Property DescriptorType As byte
var byte = usbDescriptor.descriptorType;
Value
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
var byte = usbDescriptor.length;
Value
byte byte byte byte

The length of the descriptor.

Methods

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
usbDescriptor.readDescriptorBuffer(buffer);
Parameters
buffer
IBuffer IBuffer IBuffer IBuffer

A caller-supplied buffer that receives descriptor data.

See Also