HidDevice.SendOutputReportAsync(HidOutputReport) Method

Definition

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

IAsyncOperation<UInt32>

Windows.Foundation.IAsyncOperation

IAsyncOperation<uint32_t>

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:Windows.Storage.FileAccessMode?text=FileAccessMode.ReadWrite>.

Remarks

The device must be opened with FileAccessMode.ReadWrite.

Applies to

See also