Ends the asynchronous operation initiated by BeginAddContact.
Namespace: Microsoft.Rtc.Collaboration.ContactsGroups
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub EndAddContact ( _
result As IAsyncResult _
)
'Usage
Dim instance As ContactGroupServices
Dim result As IAsyncResult
instance.EndAddContact(result)
public void EndAddContact(
IAsyncResult result
)
Parameters
- result
Type: System.IAsyncResult
The reference to the pending asynchronous operation.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when result is null. |
| ArgumentException | Thrown when result was created by a Begin method for a different operation. |
| InvalidOperationException | Thrown when EndAddContact was called more than once for the same instance of result. |
| PublishSubscribeException | Thrown when the SIP SERVICE request is rejected by the server. |
| OperationFailureException | Thrown when the underlying subscription changed during the operation. |
| RealTimeException | Thrown when SIP Transport, SIP authentication and credential-related errors are encountered. |
Remarks
For OperationFailureException, the inner exception should give more information.