Ends the asynchronous operation initiated by BeginAddContact.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
EndAddContact ( _
	
result 
As 
IAsyncResult _
)
C#
public 
void 
EndAddContact(
	
IAsyncResult 
result
)
Visual C++
public:
void 
EndAddContact(
	
IAsyncResult^ 
result
)
JavaScript
function 
endAddContact(
result);

Parameters

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

Remarks

PublishSubscribeException is usually thrown when the XML request sent to the server is invalid.

For OperationFailureException, the inner exception should give more information.

Exceptions

Exception Condition
ArgumentNullException Thrown when resultis null.
ArgumentException Thrown when resultwas created by a Begin method for a different operation.
InvalidOperationException Thrown when EndAddContact was called more than once for the same instance of result.
Microsoft.Rtc.Signaling . . :: . PublishSubscribeException Thrown when the SIP SERVICE request is rejected by the server.
Microsoft.Rtc.Signaling . . :: . OperationFailureException Thrown when the underlying subscription changed during the operation.
Microsoft.Rtc.Signaling . . :: . RealTimeException Thrown when SIP Transport, SIP authentication and credential-related errors are encountered.

See Also