JoinableTaskFactory Constructor (JoinableTaskCollection)
Initializes a new instance of JoinableTaskFactory that adds all generated jobs to the specified collection.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Sub New ( _
collection As JoinableTaskCollection _
)
public JoinableTaskFactory(
JoinableTaskCollection collection
)
public:
JoinableTaskFactory(
JoinableTaskCollection^ collection
)
new :
collection:JoinableTaskCollection -> JoinableTaskFactory
public function JoinableTaskFactory(
collection : JoinableTaskCollection
)
Parameters
collection
Type: Microsoft.VisualStudio.Threading.JoinableTaskCollectionThe collection that all tasks created by this factory will belong to until they complete
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.