Share via


BatchedJoinBlock<T1,T2>.TryReceiveAll 方法

定义

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

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

参数

items
IList<Tuple<IList<T1>,IList<T2>>>

从源中接收的项。

返回

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

注解

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

它将在检查元素后返回,无论元素是否可用。

适用于