UsbInterfaceDescriptor 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
描述接口描述符中接口) 的 USB 备用设置 (。 有关接口描述符的说明,请参阅通用串行总线规范中的 9.6.5 部分:
- 通用串行总线 3.0 规范中的表 9.15
- 通用串行总线规范中的表 9.12 (版本 2.0)
public ref class UsbInterfaceDescriptor sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbInterfaceDescriptor final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbInterfaceDescriptor
Public NotInheritable Class UsbInterfaceDescriptor
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
属性
AlternateSettingNumber |
获取 USB 接口描述符的 bAlternateSetting 字段。 值是一个数字,用于标识接口定义的备用设置。 |
ClassCode |
获取 USB 接口描述符的 bInterfaceClass 字段。 值指示接口符合的 USB 定义的类。 |
InterfaceNumber |
获取 USB 接口描述符的 bInterfaceNumber 字段。 值是标识接口的索引。 |
ProtocolCode |
获取接口描述符的 bInterfaceProtocol 字段。 值是 USB 分配的标识符,该标识符指定接口符合的 USB 定义的协议。 |
SubclassCode |
获取 USB 接口描述符的 bInterfaceSubClass 字段。 值是 USB 分配的标识符,该标识符指定接口所指向的 USB 定义的子类。 |
方法
Parse(UsbDescriptor) |
分析指定的 USB 描述符,并在 UsbInterfaceDescriptor 对象中返回备用设置信息。 |
TryParse(UsbDescriptor, UsbInterfaceDescriptor) |
检索有关 UsbDescriptor 对象中包含的 UsbInterfaceDescriptor 对象中的备用设置的信息。 |