共用方式為


JoinBlock<T1,T2>.TryReceiveAll(IList<Tuple<T1,T2>>) 方法

定義

嘗試以同步方式從 IReceivableSourceBlock<TOutput> 接收所有可用項目。

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

參數

items
IList<Tuple<T1,T2>>

從來源接收的項目。

傳回

如果無法收到一或多個項目,則為 true,否則為false

備註

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

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

適用於