LimitedConcurrencyLevelTaskScheduler.TryDequeue Method

Attempts to dequeue a Task that was previously queued to this scheduler.
Protected NotOverridable Overrides Function TryDequeue( _ 
ByVal task As Task
) As Boolean
This language is not supported or no code example is available.
protected sealed override bool TryDequeue( 
Task task 
)
This language is not supported or no code example is available.
protected:  
bool TryDequeue( 
Task^ task 
) sealed
This language is not supported or no code example is available.
protected final function TryDequeue( 
task : Task 
) : boolean;
This language is not supported or no code example is available.

Parameters

task
Task

The Task to be dequeued.

Return Value

bool

A Boolean denoting whether the task argument was successfully dequeued.

Exception type Condition

ArgumentNullException

The task argument is null.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition