Ends the service request and returns the response.

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

Syntax

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

SipResponseData
C#
public 

SipResponseData 
EndService(
	
IAsyncResult 
result
)
Visual C++
public:

SipResponseData^ 
EndService(
	
IAsyncResult^ 
result
)
JavaScript
function 
endService(
result);

Parameters

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

Return Value

Returns the response data.

Exceptions

Exception Condition
InvalidOperationException Thrown when this method is invoked multiple times using the same asyncResult.
ArgumentNullException Thrown when the resultparameter is null.
ArgumentException Thrown when the resultparameter is invalid.
Microsoft.Rtc.Signaling . . :: . FailureResponseException Thrown when the remote side returns a failure response for this operation.
Microsoft.Rtc.Signaling . . :: . OperationTimeoutException Thrown when the this operation timed out.
Microsoft.Rtc.Signaling . . :: . OperationFailureException Thrown when any of the sub operations of this operation failed due to invalid object state.
Microsoft.Rtc.Signaling . . :: . RealTimeException Thrown when any of the sub operations of this operation failed due to SIP related errors like connection failure, Authentication failure.

See Also