IReceivableSourceBlock<TOutput>::TryReceiveAll Method (IList<TOutput>^)

 

Attempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>.

Namespace:   System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

bool TryReceiveAll(
	[OutAttribute] IList<TOutput>^% items
)

Parameters

items
Type: System.Collections.Generic::IList<TOutput>^

The items received from the source.

Return Value

Type: System::Boolean

true if one or more items could be received; otherwise, false.

This method does not block waiting for the source to provide an item.

It will return after checking for elements, whether or not an element was available.

Return to top
Show: