CustomDevice.SendIOControlAsync(IIOControlCode, IBuffer, IBuffer) Method

Definition

Sends an IO control code.

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)

Parameters

ioControlCode
IIOControlCode

The IO control code.

inputBuffer
IBuffer

The input buffer.

outputBuffer
IBuffer

The output buffer.

Returns

IAsyncOperation<UInt32>

Windows.Foundation.IAsyncOperation

IAsyncOperation<uint32_t>

The result of the async operation.

Attributes

Remarks

SendIOControlAsync is like TrySendIOControlAsync, except this method throws an exception if the operation fails. If you want to handle any exceptions that occur during the operation, use the SendIOControlAsync method. If you just want to be notified whether the operation is successful, but not handle any specific exceptions, use TrySendIOControlAsync.

Applies to