Share via


RealTimeEndpoint.EndSendMessage Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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 ( _
    asyncResult As IAsyncResult _
) As SipResponseData
public SipResponseData EndSendMessage (
    IAsyncResult asyncResult
)

Parameters

  • asyncResult
    Refers to the pending asynchronous SendMessage operation.

Return Value

The response data.

Exceptions

Exception type Condition
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.

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

Encompasses an 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.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

RealTimeEndpoint Class
RealTimeEndpoint Members
Microsoft.Rtc.Signaling Namespace