SignalingSession.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
- result
Type: System.IAsyncResult
The reference to the pending asynchronous operation.
Return Value
Type: Microsoft.Rtc.Signaling.SipResponseData
Returns the response data.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when EndSendMessage is called multiple times using the same asyncResult. |
ArgumentException | Thrown when invalid arguments are passed. |
ArgumentNullException | Thrown when null is supplied for a required argument. The argument name which is required is is part of the exception message. |
FailureResponseException | Thrown when the server or remote participant returns an error. The SipResponseData in the exception should give additional information. |
RealTimeException | Thrown when some other unknown errors occur. |
ServerPolicyException | A server policy setting does not allow the sending of the message. |