Share via


AppServiceConnection.SendMessageAsync(ValueSet) Method

Definition

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

public:
 virtual IAsyncOperation<AppServiceResponse ^> ^ SendMessageAsync(ValueSet ^ message) = SendMessageAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppServiceResponse> SendMessageAsync(ValueSet const& message);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppServiceResponse> SendMessageAsync(ValueSet message);
function sendMessageAsync(message)
Public Function SendMessageAsync (message As ValueSet) As IAsyncOperation(Of AppServiceResponse)

Parameters

message
ValueSet

The message that you want to send.

Returns

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

Attributes

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.

Applies to

See also