Waits for the pending SendMessage operation to
complete.
Namespace:
Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function EndSendMessage ( _ result As IAsyncResult _ ) As SipResponseData |
C# |
---|
public SipResponseData EndSendMessage( IAsyncResult result ) |
Visual C++ |
---|
public: SipResponseData^ EndSendMessage( IAsyncResult^ result ) |
JavaScript |
---|
function endSendMessage( result); |
Parameters
- result
- Type:
IAsyncResult
The reference to the pending asynchronous operation.
Return Value
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 a non-null is expected for an argument. The argument name for which a non-null is expected is part of the exception message |
Microsoft.Rtc.Signaling . . :: . FailureResponseException | Thrown when the server or remote participant returns an error. The SipResponseData in the exception should give additional information. |
Microsoft.Rtc.Signaling . . :: . RealTimeException | Thrown when some other unknown errors occur. |
Microsoft.Rtc.Signaling . . :: . ServerPolicyException | A server policy setting does not allow the sending of the message. |