Share via


ChatMessageStore.SendMessageAsync(ChatMessage) Method

Definition

Attempts to send a chat message. The message is saved to the message store as part of the send operation.

public:
 virtual IAsyncAction ^ SendMessageAsync(ChatMessage ^ chatMessage) = SendMessageAsync;
IAsyncAction SendMessageAsync(ChatMessage const& chatMessage);
public IAsyncAction SendMessageAsync(ChatMessage chatMessage);
function sendMessageAsync(chatMessage)
Public Function SendMessageAsync (chatMessage As ChatMessage) As IAsyncAction

Parameters

chatMessage
ChatMessage

The chat message to be sent.

Returns

An asynchronous action.

Windows requirements

App capabilities
chat chatSystem smsSend

Remarks

Once the send is attempted, the message is assigned an identifier and the Id property is set to this value. If the send operation fails, the application can try sending the message again later with RetrySendMessageAsync method using the assigned identifier.

Applies to