Share via


LampArray.SendMessageAsync(Int32, IBuffer) Method

Definition

Asynchronously sends a message identified by the message identifer argument.

public:
 virtual IAsyncAction ^ SendMessageAsync(int messageId, IBuffer ^ message) = SendMessageAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SendMessageAsync(int const& messageId, IBuffer const& message);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SendMessageAsync(int messageId, IBuffer message);
function sendMessageAsync(messageId, message)
Public Function SendMessageAsync (messageId As Integer, message As IBuffer) As IAsyncAction

Parameters

messageId
Int32

int

The identifer of a message.

message
IBuffer

An IBuffer representing the message.

Returns

An asynchronous object, which can be awaited.

Attributes

Examples

LampArray sample

Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.

AutoRGB Sample

Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.

Applies to

See also