JoinableTaskCollection.Add(JoinableTask) 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.
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.