Ends the asynchronous operation started by BeginUnsubscribe method.

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

Syntax

Visual Basic (Declaration)
Public 
Overridable 
Sub 
EndUnsubscribe ( _
	
result 
As 
IAsyncResult _
)
C#
public 
virtual 
void 
EndUnsubscribe(
	
IAsyncResult 
result
)
Visual C++
public:
virtual 
void 
EndUnsubscribe(
	
IAsyncResult^ 
result
)
JavaScript
function 
endUnsubscribe(
result);

Parameters

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

Exceptions

Exception Condition
ArgumentException Thrown when the argument passed is null or invalid.
InvalidOperationException Thrown when this method is invoked multiple times using the same result.
Microsoft.Rtc.Signaling . . :: . PublishSubscribeException Thrown when the SIP SERVICE request is rejected by the server.
Microsoft.Rtc.Signaling . . :: . RealTimeException Thrown when SIP Transport, SIP authentication and credential-related errors are encountered.

See Also