BufferBlock<T>.TryReceiveAll(IList<T>) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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<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 que la source fournisse un élément.
Elle retourne après avoir vérifié si un élément était disponible ou non.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour