Export (0) Print
Expand All

TransformBlock<TInput, TOutput>.TryReceiveAll Method

.NET Framework 4.6 and 4.5

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)

public bool TryReceiveAll(
	out 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.

Implements

IReceivableSourceBlock<TOutput>.TryReceiveAll(IList<TOutput>)

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.

.NET Framework

Supported in: 4.5

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft