BroadcastBlock<T>.IReceivableSourceBlock<T>.TryReceiveAll 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>.
virtual bool System.Threading.Tasks.Dataflow.IReceivableSourceBlock<T>.TryReceiveAll([Runtime::InteropServices::Out] System::Collections::Generic::IList<T> ^ % items) = System::Threading::Tasks::Dataflow::IReceivableSourceBlock<T>::TryReceiveAll;
bool IReceivableSourceBlock<T>.TryReceiveAll (out System.Collections.Generic.IList<T> items);
abstract member System.Threading.Tasks.Dataflow.IReceivableSourceBlock<T>.TryReceiveAll : IList -> bool
override this.System.Threading.Tasks.Dataflow.IReceivableSourceBlock<T>.TryReceiveAll : IList -> bool
Function TryReceiveAll (ByRef items As IList(Of T)) As Boolean Implements IReceivableSourceBlock(Of T).TryReceiveAll
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.