共用方式為


JoinableTaskContext.CreateDefaultFactory Method

Creates a factory without a JoinableTaskCollection.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Protected Friend Overridable Function CreateDefaultFactory As JoinableTaskFactory
protected internal virtual JoinableTaskFactory CreateDefaultFactory()
protected public:
virtual JoinableTaskFactory^ CreateDefaultFactory()
abstract CreateDefaultFactory : unit -> JoinableTaskFactory  
override CreateDefaultFactory : unit -> JoinableTaskFactory
function CreateDefaultFactory() : JoinableTaskFactory

Return Value

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

Remarks

Used for initializing the Factory property.

.NET Framework Security

See Also

Reference

JoinableTaskContext Class

Microsoft.VisualStudio.Threading Namespace