Freigeben über


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

Return Value

Type: Microsoft.VisualStudio.Threading.JoinableTaskFactory
Returns JoinableTaskFactory.

.NET Framework Security

See Also

Reference

JoinableTaskContext Class

Microsoft.VisualStudio.Threading Namespace