HidDevice.SendOutputReportAsync(HidOutputReport) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends an output report asynchronously from the host to the device.
public:
virtual IAsyncOperation<unsigned int> ^ SendOutputReportAsync(HidOutputReport ^ outputReport) = SendOutputReportAsync;
IAsyncOperation<uint32_t> SendOutputReportAsync(HidOutputReport const& outputReport);
public IAsyncOperation<uint> SendOutputReportAsync(HidOutputReport outputReport);
function sendOutputReportAsync(outputReport)
Public Function SendOutputReportAsync (outputReport As HidOutputReport) As IAsyncOperation(Of UInteger)
Parameters
- outputReport
- HidOutputReport
The output report which the host sends to the device.
Returns
Specifies the count of bytes written to the device.
Exceptions
This device does not have permission to send an output report. To send this report, the device must be opened with <xref href="Windows.Storage.FileAccessMode?text=FileAccessMode.ReadWrite" />.
Remarks
The device must be opened with FileAccessMode.ReadWrite.