Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UsbDescriptor class

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

Syntax


var usbDescriptor = Windows.Devices.Usb.UsbConfiguration.Descriptors;
var usbDescriptor = UsbInerface.Descriptors;
var usbDescriptor = UsbInterfaceSetting.Descriptors;

Members

The UsbDescriptor class has these types of members:

Methods

The UsbDescriptor class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
ReadDescriptorBuffer Reads descriptor data in the caller-supplied buffer.

 

Properties

The UsbDescriptor class has these properties.

PropertyAccess typeDescription

DescriptorType

Read-only

Gets the type of descriptor.

Length

Read-only

Gets the length of the descriptor.

 

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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

See also

Object
USB descriptors

 

 

Show: