Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CustomDevice.TrySendIOControlAsync | trySendIOControlAsync method

Applies to Windows only

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

Syntax


customDevice.trySendIOControlAsync(ioControlCode, inputBuffer, outputBuffer).done( /* Your success and error handlers */ );

Parameters

ioControlCode

Type: IIOControlCode

The IO control code.

inputBuffer

Type: IBuffer

The input buffer.

outputBuffer

Type: IBuffer

The output buffer.

Return value

Type: IAsyncOperation<Boolean>

true if the operation is successful; otherwise, false.

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Devices.Custom
Windows::Devices::Custom [C++]

Metadata

Windows.winmd

See also

CustomDevice

 

 

Show:
© 2014 Microsoft. All rights reserved.