Edit

Share via


InstantMessagingFlow.EndSendInstantMessage(IAsyncResult) Method

Definition

Gets the results of the SendInstantMessage operation.

public:
 Microsoft::Rtc::Collaboration::SendInstantMessageResult ^ EndSendInstantMessage(IAsyncResult ^ result);
public Microsoft.Rtc.Collaboration.SendInstantMessageResult EndSendInstantMessage (IAsyncResult result);
member this.EndSendInstantMessage : IAsyncResult -> Microsoft.Rtc.Collaboration.SendInstantMessageResult
Public Function EndSendInstantMessage (result As IAsyncResult) As SendInstantMessageResult

Parameters

result
IAsyncResult

The reference to the pending asynchronous operation.

Returns

The message id from the provisional response, if any, received Or the list of participants failed to receive the message. By default, the message id will not be populated unless the application configured the flow property WaitingForDeliveryNotificationDisabled appropriately.

Exceptions

Thrown when this method is invoked multiple times using the same instance of asyncResult.

Thrown when the result parameter is null.

Thrown when the result parameter is invalid.

Thrown when the server or remote participant returns an error response. The SipResponseData in the exception should give additional information.

A server policy setting does not allow the sending of the message.

Thrown when the operation failed.

Thrown when the operation timed out while waiting for a response.

Applies to