BroadcastBlock<T>.IReceivableSourceBlock<T>.TryReceiveAll 方法

定义

IReceivableSourceBlock<TOutput> 中尝试同步接收所有可用项。

 virtual bool System.Threading.Tasks.Dataflow.IReceivableSourceBlock<T>.TryReceiveAll([Runtime::InteropServices::Out] System::Collections::Generic::IList<T> ^ % items) = System::Threading::Tasks::Dataflow::IReceivableSourceBlock<T>::TryReceiveAll;
bool IReceivableSourceBlock<T>.TryReceiveAll (out System.Collections.Generic.IList<T> items);
abstract member System.Threading.Tasks.Dataflow.IReceivableSourceBlock<T>.TryReceiveAll : IList -> bool
override this.System.Threading.Tasks.Dataflow.IReceivableSourceBlock<T>.TryReceiveAll : IList -> bool
Function TryReceiveAll (ByRef items As IList(Of T)) As Boolean Implements IReceivableSourceBlock(Of T).TryReceiveAll

参数

items
IList<T>

从源中接收的项。

返回

Boolean

如果可以接收一个或多个项目,则为 true;否则为 false

注解

此方法不会阻止等待源提供项。

它会在检查元素后返回,该元素是否可用。

适用于