AppServiceConnection.SendMessageAsync(ValueSet) AppServiceConnection.SendMessageAsync(ValueSet) AppServiceConnection.SendMessageAsync(ValueSet) AppServiceConnection.SendMessageAsync(ValueSet) AppServiceConnection.SendMessageAsync(ValueSet) Method

Definition

Sends a message to the other endpoint of the app service connection.

public : IAsyncOperation<AppServiceResponse> SendMessageAsync(ValueSet message)
IAsyncOperation<AppServiceResponse> SendMessageAsync(ValueSet message) const;
public IAsyncOperation<AppServiceResponse> SendMessageAsync(ValueSet message)
Public Function SendMessageAsync(message As ValueSet) As IAsyncOperation(Of AppServiceResponse)
Windows.ApplicationModel.AppService.AppServiceConnection.sendMessageAsync(message).done( /* Your success and error handlers */ );

Parameters

message
ValueSet ValueSet ValueSet

The message that you want to send.

Returns

An asynchronous operation to send the message that optionally returns a response message when complete.

Remarks

Message delivery is not guaranteed. The AppServiceResponseStatus tells you whether delivery succeeded or not.

When multiple messages are sent, RequestReceived is not guaranteed to fire in the same order that the messages were sent. This method is asynchronous, meaning that it will return whenever the work that needs to be done is complete. No ordering is enforced.

See also