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
context
Type: Microsoft.VisualStudio.Threading.JoinableTaskContextThe JoinableTaskContext to which this collection applies.
refCountAddedJobs
Type: System.Booleantrue 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
- 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.