Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
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.

UsbConfiguration class

Provides information about a USB configuration, its descriptors and the interfaces defined within that configuration. For an explanation of a USB configuration, see Section 9.6.3 in the Universal Serial Bus (USB) specification.

Syntax


var usbConfiguration = Windows.Devices.Usb.UsbDevice.Configuration;

Members

The UsbConfiguration class has these types of members:

Properties

The UsbConfiguration class has these properties.

PropertyAccess typeDescription

ConfigurationDescriptor

Read-onlyGets the object that contains the first 9 bytes of the descriptor associated with the USB configuration.

Descriptors

Read-onlyGets an array of objects that represent the full set of descriptors associated with a USB configuration.

UsbInterfaces

Read-onlyGets an array of USB interfaces available in the USB configuration.

 

Remarks

Within a USB configuration, the number of interfaces and their alternate settings are variable, depending on the number of interfaces that the device supports. You can collect all that information by using: UsbConfigurationDescriptor and UsbConfigurationDescriptor.Descriptors. The UsbConfigurationDescriptor contains the first 9 bytes of the configuration descriptor. The UsbConfigurationDescriptor.Descriptors object contains an array of descriptors associated with all interfaces and their settings.

Requirements (Windows 10 device family)

Device family

Universal

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

 

 

Show:
© 2015 Microsoft