共用方式為


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 控制項傳輸的收件者。

適用於