Compartir a través de


JoinableTaskCollection Constructor

Initializes a new instance of JoinableTaskCollection with the specified task context.

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

Syntax

'Declaration
Public Sub New ( _
    context As JoinableTaskContext, _
    refCountAddedJobs As Boolean _
)
public JoinableTaskCollection(
    JoinableTaskContext context,
    bool refCountAddedJobs
)
public:
JoinableTaskCollection(
    JoinableTaskContext^ context, 
    bool refCountAddedJobs
)
new : 
        context:JoinableTaskContext * 
        refCountAddedJobs:bool -> JoinableTaskCollection
public function JoinableTaskCollection(
    context : JoinableTaskContext, 
    refCountAddedJobs : boolean
)

Parameters

  • refCountAddedJobs
    Type: System.Boolean

    true if JoinableTask instances added to the collection multiple times should remain in the collection until they are either removed the same number of times or until they are completed; false causes the first Remove call for a JoinableTask to remove it from this collection no matter how many times it had been added.

.NET Framework Security

See Also

Reference

JoinableTaskCollection Class

Microsoft.VisualStudio.Threading Namespace