Gets the results of the Send operation.

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

Syntax

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

InstantMessageId
C#
public 

InstantMessageId 
EndSendMessage(
	
IAsyncResult 
result
)
Visual C++
public:

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

Parameters

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

Return Value

The message ID assigned if successfully sent and a 202 response is received. Can be null if failure or 200 response is received.

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 . . :: . RealTimeException Thrown when the operation failed.
Microsoft.Rtc.Signaling . . :: . OperationTimeoutException Thrown when the operation timed out while waiting for a response.

See Also