UsbDescriptor class

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-onlyGets the type of descriptor.

Length

Read-onlyGets 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:
© 2016 Microsoft