共用方式為


JoinableTaskContextNode.CreateFactory(JoinableTaskCollection) Method

Definition

Creates a joinable task factory that automatically adds all created tasks to a collection that can be jointly joined.

public:
 virtual Microsoft::VisualStudio::Threading::JoinableTaskFactory ^ CreateFactory(Microsoft::VisualStudio::Threading::JoinableTaskCollection ^ collection);
public virtual Microsoft.VisualStudio.Threading.JoinableTaskFactory CreateFactory (Microsoft.VisualStudio.Threading.JoinableTaskCollection collection);
abstract member CreateFactory : Microsoft.VisualStudio.Threading.JoinableTaskCollection -> Microsoft.VisualStudio.Threading.JoinableTaskFactory
override this.CreateFactory : Microsoft.VisualStudio.Threading.JoinableTaskCollection -> Microsoft.VisualStudio.Threading.JoinableTaskFactory
Public Overridable Function CreateFactory (collection As JoinableTaskCollection) As JoinableTaskFactory

Parameters

collection
JoinableTaskCollection

The collection that all tasks should be added to.

Returns

Returns JoinableTaskFactory.

Applies to