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

适用于