Share via


BeginAddTargets Method

Add target in the subscription dispatcher and also start the subscription for given target.

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

Syntax

'Declaration
Public Function BeginAddTargets ( _
    targetsToAdd As ICollection(Of RemotePresentitySubscriptionTarget), _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As RemotePresence
Dim targetsToAdd As ICollection(Of RemotePresentitySubscriptionTarget)
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginAddTargets(targetsToAdd, _
    userCallback, state)
public IAsyncResult BeginAddTargets(
    ICollection<RemotePresentitySubscriptionTarget> targetsToAdd,
    AsyncCallback userCallback,
    Object state
)

Parameters

Return Value

Type: System..::..IAsyncResult

Remarks

Exceptions

[T:System.ArgumentNullException]: Thrown when targetsToAdd parameter passed is null.

[T:System.ArgumentException]: Thrown when targetsToAdd parameter is an empty collection, contains null RemotePresentitySubscriptionTarget member or shows no new targets.

See Also

Reference

RemotePresence Class

RemotePresence Members

Microsoft.Rtc.Collaboration.Presence Namespace