Sdílet prostřednictvím


JoinableTaskCollection.Add(JoinableTask) Method

Definition

Adds the specified JoinableTask to this collection.

public:
 void Add(Microsoft::VisualStudio::Threading::JoinableTask ^ joinableTask);
public:
 void Add(Microsoft::VisualStudio::Threading::JoinableTask ^ joinableTask);
void Add(Microsoft::VisualStudio::Threading::JoinableTask const & joinableTask);
public void Add (Microsoft.VisualStudio.Threading.JoinableTask joinableTask);
member this.Add : Microsoft.VisualStudio.Threading.JoinableTask -> unit
Public Sub Add (joinableTask As JoinableTask)

Parameters

joinableTask
JoinableTask

The JoinableTask to add to the collection.

Remarks

As the collection only stores *incomplete* JoinableTask instances, if the joinableTask is already completed, it will not be added to the collection and this method will simply return. Any JoinableTask instances added to the collection will be automatically removed upon completion.

Applies to