共用方式為


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

備註

此方法不會封鎖等候來源提供專案。

它會在檢查項目之後傳回,不論專案是否可用。

適用於