Ends the asynchronous operation started by
BeginAddTargets(ICollection
<
(Of
<
(
RemotePresentitySubscriptionTarget
>
)
>
)
, AsyncCallback, Object).
Namespace:
Microsoft.Rtc.Collaboration.Presence
Assembly: Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub EndAddTargets ( _ result As IAsyncResult _ ) |
C# |
---|
public void EndAddTargets( IAsyncResult result ) |
Visual C++ |
---|
public: void EndAddTargets( IAsyncResult^ result ) |
JavaScript |
---|
function endAddTargets( result); |
Parameters
- result
- Type:
IAsyncResult
The reference to the pending asynchronous operation.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when resultwas created by a Begin method for a different operation. |
InvalidOperationException | Thrown when EndAddTargets 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 . . :: . RealTimeException | Thrown when SIP Transport, SIP authentication and credential-related errors are encountered. |