Compartilhar via


IReceivableSourceBlock<TOutput>.TryReceiveAll Método

Definição

Tentativas de receber assincronamente todos os itens disponíveis do IReceivableSourceBlock<TOutput>.

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

Parâmetros

items
IList<TOutput>

Os itens recebidos da origem.

Retornos

true se foi possível receber um ou mais itens; caso contrário, false.

Comentários

Esse método não bloqueia a espera para que a origem forneça um item.

Ele retornará depois de verificar se há elementos, se um elemento estava disponível ou não.

Aplica-se a