BufferBlock<T>.TryReceiveAll(IList<T>) 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<T> ^ % items);
public bool TryReceiveAll(out System.Collections.Generic.IList<T> items);
public bool TryReceiveAll(out System.Collections.Generic.IList<T>? items);
abstract member TryReceiveAll : IList -> bool
override this.TryReceiveAll : IList -> bool
Public Function TryReceiveAll (ByRef items As IList(Of T)) As Boolean

Paramètres

items
IList<T>

É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 à