Share via


EndSendMessage Method

Waits for the pending [SendMessage] operation to complete.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Function EndSendMessage ( _
    result As IAsyncResult _
) As SipResponseData
'Usage
Dim instance As SignalingSession
Dim result As IAsyncResult
Dim returnValue As SipResponseData

returnValue = instance.EndSendMessage(result)
public SipResponseData EndSendMessage(
    IAsyncResult result
)

Parameters

Return Value

Type: Microsoft.Rtc.Signaling..::..SipResponseData
Returns the response data.

Exceptions

Exception Condition
ArgumentNullException

Thrown when a non-nullNothingnullptrunita null reference (Nothing in Visual Basic) is expected for an argument. The argument name for which a non-nullNothingnullptrunita null reference (Nothing in Visual Basic) is expected is part of the exception message.

RealTimeException

Thrown when the server or remote participant returns an error.

The response code in the exception should give more information about the error or encompasses SIP error or failure cases encountered during sending the message - SIP Transport error, SIP Authentication, and credential-related errors.

ArgumentException

Thrown when invalid arguments are passed.

InvalidOperationException

Thrown when [EndSendMessage] is called multiple times using the same [asyncResult].

FailureResponseException

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

ServerPolicyException

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

See Also

Reference

SignalingSession Class

SignalingSession Members

Microsoft.Rtc.Signaling Namespace