Share via


CustomDevice.TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer) Method

Definition

Sends an IO control code. A return value indicates whether the operation succeeded.

public:
 virtual IAsyncOperation<bool> ^ TrySendIOControlAsync(IIOControlCode ^ ioControlCode, IBuffer ^ inputBuffer, IBuffer ^ outputBuffer) = TrySendIOControlAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySendIOControlAsync(IIOControlCode const& ioControlCode, IBuffer const& inputBuffer, IBuffer const& outputBuffer);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySendIOControlAsync(IIOControlCode ioControlCode, IBuffer inputBuffer, IBuffer outputBuffer);
function trySendIOControlAsync(ioControlCode, inputBuffer, outputBuffer)
Public Function TrySendIOControlAsync (ioControlCode As IIOControlCode, inputBuffer As IBuffer, outputBuffer As IBuffer) As IAsyncOperation(Of Boolean)

Parameters

ioControlCode
IIOControlCode

The IO control code.

inputBuffer
IBuffer

The input buffer.

outputBuffer
IBuffer

The output buffer.

Returns

true if the operation is successful; otherwise, false.

Attributes

Remarks

TrySendIOControlAsync is like SendIOControlAsync, except this method doesn't throw an exception if the operation fails. Instead, it returns false. If you want to handle any exceptions that occur during the operation, use the SendIOControlAsync method.

Applies to