Completes the asynchronous operation started by the BeginSendMessage call.

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

Syntax

Visual Basic (Declaration)
Protected 
Function 
EndSendMessage ( _
	
result 
As 
IAsyncResult _
) 
As 

SipResponseData
C#
protected 

SipResponseData 
EndSendMessage(
	
IAsyncResult 
result
)
Visual C++
protected:

SipResponseData^ 
EndSendMessage(
	
IAsyncResult^ 
result
)
JavaScript
function 
endSendMessage(
result);

Parameters

result
Type: IAsyncResult
The reference to the pending asynchronous operation.

Return Value

The response to the message send request.

Exceptions

Exception Condition
InvalidOperationException Thrown when this method is invoked multiple times using the same instance of asyncResult.
ArgumentNullException Thrown when the resultparameter is null.
ArgumentException Thrown when the resultparameter is invalid.
Microsoft.Rtc.Signaling . . :: . FailureResponseException Thrown when the server or remote participant returns an error. The response code in the exception should give more information about the error
Microsoft.Rtc.Signaling . . :: . RealTimeException Encompasses an SIP error or failure cases encountered during sending the message - SIP Transport error, SIP Authentication or other error.

See Also