JoinBlock<T1,T2>.TryReceiveAll(IList<Tuple<T1,T2>>) Méthode

Définition

Tente de recevoir de manière synchrone tous les éléments disponibles à partir du IReceivableSourceBlock<TOutput>.

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

Paramètres

items
IList<Tuple<T1,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 de la source pour fournir un élément.

Elle retourne après la vérification des éléments, si un élément a été disponible ou non.

S’applique à