UsbControlRequestType 类

定义

提供有关 USB 控制传输、控制请求类型、数据是从主机发送还是发送到主机的信息,以及设备中请求的接收方。

public ref class UsbControlRequestType sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbControlRequestType final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class UsbControlRequestType final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbControlRequestType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class UsbControlRequestType
function UsbControlRequestType()
Public NotInheritable Class UsbControlRequestType
继承
Object Platform::Object IInspectable UsbControlRequestType
属性

Windows 要求

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

构造函数

UsbControlRequestType()

创建 UsbControlRequestType 对象。

属性

AsByte

获取或设置 bmRequestType 值作为字节。

ControlTransferType

获取或设置 USB 控制传输的类型:标准、类或供应商。

Direction

获取或设置 USB 控件传输的方向。

Recipient

获取或设置 USB 控件传输的接收方。

适用于