共用方式為


CustomDevice.SendIOControlAsync(IIOControlCode, IBuffer, IBuffer) 方法

定義

傳送 IO 控制項程式碼。

public:
 virtual IAsyncOperation<unsigned int> ^ SendIOControlAsync(IIOControlCode ^ ioControlCode, IBuffer ^ inputBuffer, IBuffer ^ outputBuffer) = SendIOControlAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<uint32_t> SendIOControlAsync(IIOControlCode const& ioControlCode, IBuffer const& inputBuffer, IBuffer const& outputBuffer);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<uint> SendIOControlAsync(IIOControlCode ioControlCode, IBuffer inputBuffer, IBuffer outputBuffer);
function sendIOControlAsync(ioControlCode, inputBuffer, outputBuffer)
Public Function SendIOControlAsync (ioControlCode As IIOControlCode, inputBuffer As IBuffer, outputBuffer As IBuffer) As IAsyncOperation(Of UInteger)

參數

ioControlCode
IIOControlCode

IO 控制項程式碼。

inputBuffer
IBuffer

輸入緩衝區。

outputBuffer
IBuffer

輸出緩衝區。

傳回

IAsyncOperation<UInt32>

Windows.Foundation.IAsyncOperation

IAsyncOperation<uint32_t>

非同步作業的結果。

屬性

備註

SendIOControlAsync 就像 TrySendIOControlAsync,但此方法會在作業失敗時擲回例外狀況。 如果您想要處理作業期間發生的任何例外狀況,請使用 SendIOControlAsync 方法。 如果您只想通知作業是否成功,但未處理任何特定的例外狀況,請使用 TrySendIOControlAsync

適用於