-api-id | -api-type |
---|---|
M:Windows.Devices.Custom.CustomDevice.TrySendIOControlAsync(Windows.Devices.Custom.IIOControlCode,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer) |
winrt method |
Sends an IO control code. A return value indicates whether the operation succeeded.
The IO control code.
The input buffer.
The output buffer.
true if the operation is successful; otherwise, false.
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.