BatchBlock<T>.TryReceiveAll(IList<T[]>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>.
public:
virtual bool TryReceiveAll([Runtime::InteropServices::Out] System::Collections::Generic::IList<cli::array <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
Parameters
- items
- IList<T[]>
The items received from the source.
Returns
true
if one or more items could be received; otherwise, false
.
Remarks
This method does not block waiting for the source to provide an item.
It will return after checking for elements, whether or not an element was available.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.