JoinableTaskContext.CreateFactory Method
Creates a joinable task factory that automatically adds all created tasks to a collection that can be jointly joined.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Overridable Function CreateFactory ( _
collection As JoinableTaskCollection _
) As JoinableTaskFactory
public virtual JoinableTaskFactory CreateFactory(
JoinableTaskCollection collection
)
public:
virtual JoinableTaskFactory^ CreateFactory(
JoinableTaskCollection^ collection
)
abstract CreateFactory :
collection:JoinableTaskCollection -> JoinableTaskFactory
override CreateFactory :
collection:JoinableTaskCollection -> JoinableTaskFactory
public function CreateFactory(
collection : JoinableTaskCollection
) : JoinableTaskFactory
Parameters
collection
Type: Microsoft.VisualStudio.Threading.JoinableTaskCollectionThe collection that all tasks should be added to.
Return Value
Type: Microsoft.VisualStudio.Threading.JoinableTaskFactory
Returns JoinableTaskFactory.
.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.