Partager via


BatchedJoinBlock<T1,T2>.TryReceiveAll Méthode

Définition

Tente de recevoir de façon synchrone tous les éléments disponibles de IReceivableSourceBlock<TOutput>.

public:
 virtual bool TryReceiveAll([Runtime::InteropServices::Out] System::Collections::Generic::IList<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^> ^> ^ % items);
public bool TryReceiveAll (out System.Collections.Generic.IList<Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>> items);
public bool TryReceiveAll (out System.Collections.Generic.IList<Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>>? items);
abstract member TryReceiveAll : IList -> bool
override this.TryReceiveAll : IList -> bool
Public Function TryReceiveAll (ByRef items As IList(Of Tuple(Of IList(Of T1), IList(Of T2)))) As Boolean

Paramètres

items
IList<Tuple<IList<T1>,IList<T2>>>

Éléments reçus de la source.

Retours

true si un ou plusieurs éléments peuvent être reçus ; sinon, false.

Remarques

Cette méthode ne bloque pas l’attente que la source fournisse un élément.

Elle retourne après avoir vérifié si un élément était disponible ou non.

S’applique à