Share via


JoinableTaskCollection(JoinableTaskContext, Boolean) Constructor

Definition

Initializes a new instance of the JoinableTaskCollection class.

public JoinableTaskCollection (Microsoft.VisualStudio.Threading.JoinableTaskContext context, bool refCountAddedJobs = false);
new Microsoft.VisualStudio.Threading.JoinableTaskCollection : Microsoft.VisualStudio.Threading.JoinableTaskContext * bool -> Microsoft.VisualStudio.Threading.JoinableTaskCollection
Public Sub New (context As JoinableTaskContext, Optional refCountAddedJobs As Boolean = false)

Parameters

context
JoinableTaskContext

The JoinableTaskContext instance to which this collection applies.

refCountAddedJobs
Boolean

true if JoinableTask instances added to the collection multiple times should remain in the collection until they are either removed the same number of times or until they are completed; false causes the first Remove call for a JoinableTask to remove it from this collection regardless how many times it had been added.

Applies to