BufferBlock<T>.TryReceiveAll(IList<T>) メソッド

定義

IReceivableSourceBlock<TOutput>から使用可能なすべての項目を同期的に受信しようとします。

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

パラメーター

items
IList<T>

ソースから受信したアイテム。

返品

true 1 つ以上のアイテムを受信できる場合。それ以外の場合は false

注釈

このメソッドは、ソースが項目を提供するのを待機することをブロックしません。

要素が使用可能であったかどうか、要素をチェックした後に返されます。

適用対象