共用方式為


JoinableTaskFactory Constructors

Definition

Overloads

JoinableTaskFactory(JoinableTaskCollection)

Initializes a new instance of the JoinableTaskFactory class that adds all generated jobs to the specified collection.

JoinableTaskFactory(JoinableTaskContext)

Initializes a new instance of the JoinableTaskFactory class.

JoinableTaskFactory(JoinableTaskCollection)

Initializes a new instance of the JoinableTaskFactory class that adds all generated jobs to the specified collection.

public:
 JoinableTaskFactory(Microsoft::VisualStudio::Threading::JoinableTaskCollection ^ collection);
public JoinableTaskFactory (Microsoft.VisualStudio.Threading.JoinableTaskCollection collection);
new Microsoft.VisualStudio.Threading.JoinableTaskFactory : Microsoft.VisualStudio.Threading.JoinableTaskCollection -> Microsoft.VisualStudio.Threading.JoinableTaskFactory
Public Sub New (collection As JoinableTaskCollection)

Parameters

collection
JoinableTaskCollection

The collection that all tasks created by this factory will belong to till they complete.

Applies to

JoinableTaskFactory(JoinableTaskContext)

Initializes a new instance of the JoinableTaskFactory class.

public:
 JoinableTaskFactory(Microsoft::VisualStudio::Threading::JoinableTaskContext ^ owner);
public JoinableTaskFactory (Microsoft.VisualStudio.Threading.JoinableTaskContext owner);
new Microsoft.VisualStudio.Threading.JoinableTaskFactory : Microsoft.VisualStudio.Threading.JoinableTaskContext -> Microsoft.VisualStudio.Threading.JoinableTaskFactory
Public Sub New (owner As JoinableTaskContext)

Parameters

owner
JoinableTaskContext

The context for the tasks created by this factory.

Applies to