Share via


UsbConfiguration Class

Definition

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.

public ref class UsbConfiguration sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbConfiguration final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbConfiguration
Public NotInheritable Class UsbConfiguration
Inheritance
Object Platform::Object IInspectable UsbConfiguration
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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.

Properties

ConfigurationDescriptor

Gets the object that contains the first 9 bytes of the descriptor associated with the USB configuration.

Descriptors

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

UsbInterfaces

Gets an array of USB interfaces available in the USB configuration.

Applies to