語言

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

備註

此方法不會阻擋等待來源提供項目。

在檢查元素後,該系統會返回,確認是否有元素可用。

適用於