MediaProvider.EndSendMessage Method
Completes the asynchronous operation started by the BeginSendMessage.
Namespace: Microsoft.Rtc.Collaboration.ComponentModel
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Protected Function EndSendMessage ( _
result As IAsyncResult _
) As SipResponseData
'Usage
Dim result As IAsyncResult
Dim returnValue As SipResponseData
returnValue = Me.EndSendMessage(result)
protected SipResponseData EndSendMessage(
IAsyncResult result
)
Parameters
- result
Type: System.IAsyncResult
The reference to the pending asynchronous operation.
Return Value
Type: Microsoft.Rtc.Signaling.SipResponseData
The response to the message send request.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when this method is invoked multiple times using the same asyncResult. |
ArgumentNullException | Thrown when the result parameter is null. |
ArgumentException | Thrown when the result parameter is invalid. |
FailureResponseException | Thrown when the server or remote participant returns an error. The response code in the exception should give more information about the error |
RealTimeException | Thrown when any of the sub operations of this operation failed due to SIP related errors like connection failure, Authentication failure. |