UsbConfiguration 类

定义

提供有关 USB 配置、其描述符和在该配置中定义的接口的信息。 有关 USB 配置的说明,请参阅通用串行总线 (USB) 规范中的 9.6.3 部分。

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
继承
Object Platform::Object IInspectable UsbConfiguration
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

在 USB 配置中,接口数及其备用设置是可变的,具体取决于设备支持的接口数。 可以使用 UsbConfigurationDescriptorUsbConfigurationDescriptor.Descriptors 收集所有这些信息。 UsbConfigurationDescriptor 包含配置描述符的前 9 个字节。 UsbConfigurationDescriptor.Descriptors 对象包含与所有接口及其设置关联的描述符数组。

属性

ConfigurationDescriptor

获取对象,该对象包含与 USB 配置关联的描述符的前 9 个字节。

Descriptors

获取对象的数组,这些对象表示与 USB 配置关联的完整描述符集。

UsbInterfaces

获取 USB 配置中可用的 USB 接口数组。

适用于