RemotePresence.BeginAddTargets Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Begins an asynchronous operation to add a target in the subscription dispatcher and to start the subscription for the given target.
public:
IAsyncResult ^ BeginAddTargets(System::Collections::Generic::ICollection<Microsoft::Rtc::Collaboration::Presence::RemotePresentitySubscriptionTarget ^> ^ targetsToAdd, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginAddTargets (System.Collections.Generic.ICollection<Microsoft.Rtc.Collaboration.Presence.RemotePresentitySubscriptionTarget> targetsToAdd, AsyncCallback userCallback, object state);
member this.BeginAddTargets : System.Collections.Generic.ICollection<Microsoft.Rtc.Collaboration.Presence.RemotePresentitySubscriptionTarget> * AsyncCallback * obj -> IAsyncResult
Public Function BeginAddTargets (targetsToAdd As ICollection(Of RemotePresentitySubscriptionTarget), userCallback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- targetsToAdd
- ICollection<RemotePresentitySubscriptionTarget>
The addresses of the targets to add.
- userCallback
- AsyncCallback
The method to be called when the asynchronous operation is completed.
- state
- Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.
Returns
An IAsyncResult that references the asynchronous operation.
Exceptions
Thrown when targetsToAdd
is null.
Thrown when targetsToAdd
is an empty collection, or when it contains a null member, or when there are no new targets to be added or removed.
Remarks
This BeginAddTargets(ICollection<RemotePresentitySubscriptionTarget>, AsyncCallback, Object) will return immediately. The application should use the PresenceSubscriptionStateChanged event handler to track whether the individual targets have been subscribed to.