共用方式為


UsbDevice.SendControlInTransferAsync 方法

定義

多載

SendControlInTransferAsync(UsbSetupPacket)

啟動從裝置的預設控制端點讀取的零長度 USB 控制項傳輸。

SendControlInTransferAsync(UsbSetupPacket, IBuffer)

啟動 USB 控制傳輸,以從裝置的預設控制端點接收資料。

SendControlInTransferAsync(UsbSetupPacket)

啟動從裝置的預設控制端點讀取的零長度 USB 控制項傳輸。

public:
 virtual IAsyncOperation<IBuffer ^> ^ SendControlInTransferAsync(UsbSetupPacket ^ setupPacket) = SendControlInTransferAsync;
/// [Windows.Foundation.Metadata.Overload("SendControlInTransferAsyncNoBuffer")]
IAsyncOperation<IBuffer> SendControlInTransferAsync(UsbSetupPacket const& setupPacket);
[Windows.Foundation.Metadata.Overload("SendControlInTransferAsyncNoBuffer")]
public IAsyncOperation<IBuffer> SendControlInTransferAsync(UsbSetupPacket setupPacket);
function sendControlInTransferAsync(setupPacket)
Public Function SendControlInTransferAsync (setupPacket As UsbSetupPacket) As IAsyncOperation(Of IBuffer)

參數

setupPacket
UsbSetupPacket

UsbSetupPacket物件,其中包含控制傳輸的安裝封包。

傳回

傳回會傳回作業結果 的 IAsyncOperation (IBuffer) 物件。

屬性

另請參閱

適用於

SendControlInTransferAsync(UsbSetupPacket, IBuffer)

啟動 USB 控制傳輸,以從裝置的預設控制端點接收資料。

public:
 virtual IAsyncOperation<IBuffer ^> ^ SendControlInTransferAsync(UsbSetupPacket ^ setupPacket, IBuffer ^ buffer) = SendControlInTransferAsync;
/// [Windows.Foundation.Metadata.Overload("SendControlInTransferAsync")]
IAsyncOperation<IBuffer> SendControlInTransferAsync(UsbSetupPacket const& setupPacket, IBuffer const& buffer);
[Windows.Foundation.Metadata.Overload("SendControlInTransferAsync")]
public IAsyncOperation<IBuffer> SendControlInTransferAsync(UsbSetupPacket setupPacket, IBuffer buffer);
function sendControlInTransferAsync(setupPacket, buffer)
Public Function SendControlInTransferAsync (setupPacket As UsbSetupPacket, buffer As IBuffer) As IAsyncOperation(Of IBuffer)

參數

setupPacket
UsbSetupPacket

UsbSetupPacket物件,其中包含控制傳輸的安裝封包。

buffer
IBuffer

包含傳輸資料的呼叫端提供的緩衝區。

傳回

傳回會傳回作業結果 的 IAsyncOperation (IBuffer) 物件。

屬性

適用於