Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BatchedJoinBlock<T1, T2>::TryReceive Method (Predicate<Tuple<IList<T1>^, IList<T2>^>^>^, Tuple<IList<T1>^, IList<T2>^>^)

 

Attempts to synchronously receive an available output item from the IReceivableSourceBlock<TOutput>.

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

public:
virtual bool TryReceive(
	Predicate<Tuple<IList<T1>^, IList<T2>^>^>^ filter,
	[OutAttribute] Tuple<IList<T1>^, IList<T2>^>^% item
) sealed

Parameters

filter
Type: System::Predicate<Tuple<IList<T1>^, IList<T2>^>^>^

The predicate a value must successfully pass in order for it to be received. filter may be null, in which case all items will pass.

item
Type: System::Tuple<IList<T1>^, IList<T2>^>^

The item received from the source.

Return Value

Type: System::Boolean

true if an item could be received; otherwise, false.

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

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

Return to top
Show:
© 2017 Microsoft