Skip to main content
UsbConfigurationDescriptor class

Applies to Windows only

Derives information from the first 9 bytes of a USB configuration descriptor. The information includes the power capabilities of the device when the configuration is active and the number of interfaces included in that configuration. For an explanation of a configuration descriptor, Section 9.6.3 Universal Serial Bus Specification. For information about descriptor fields, see:

  • Table 9.15 in the Universal Serial Bus 3.0 Specification
  • Table 9.10 in the Universal Serial Bus Specification (version 2.0)

Syntax


var usbConfigurationDescriptor = Windows.Devices.Usb.UsbConfigurationDescriptor;

public sealed class UsbConfigurationDescriptor

Public NotInheritable Class UsbConfigurationDescriptor

public ref class UsbConfigurationDescriptor sealed 

Attributes

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

Members

The UsbConfigurationDescriptor class has these types of members:

Methods

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

MethodDescription
Parse Parses the specified USB descriptor and returns fields of a USB configuration descriptor.
TryParse Retrieves the first 9 bytes of a USB configuration descriptor in a UsbConfigurationDescriptor object that is contained in a UsbDescriptor object.

 

Properties

The UsbConfigurationDescriptor class has these properties.

PropertyAccess typeDescription

ConfigurationValue

Read-onlyGets the bConfigurationValue field of a USB configuration descriptor. The value is the number that identifies the configuration.

MaxPowerMilliamps

Read-onlyGets the bMaxPower field of a USB configuration descriptor. The value indicates the maximum power (in milliamp units) that the device can draw from the bus, when the device is bus-powered.

RemoteWakeup

Read-onlyGets the D5 bit value of the bmAttributes field in the USB configuration descriptor. The value indicates whether the device can send a resume signal to wake up itself or the host system from a low power state.

SelfPowered

Read-onlyGets the D6 bit of the bmAttributes field in the USB configuration. This value indicates whether the device is drawing power from a local source or the bus.

 

Remarks

A USB device exposes its capabilities in the form of a USB configuration. A USB configuration is described in a configuration descriptor that the UsbConfigurationDescriptor class represents. For information about the descriptor, see USB configuration descriptors.

Requirements

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

See also

Object
USB configuration descriptors