Partilhar via


PipelineReader<T>.NonBlockingRead Method

Definition

Overloads

NonBlockingRead()

Reads all objects currently in the stream, but does not block.

NonBlockingRead(Int32)

Reads objects currently in the stream, but does not block.

NonBlockingRead()

Reads all objects currently in the stream, but does not block.

public:
 abstract System::Collections::ObjectModel::Collection<T> ^ NonBlockingRead();
public abstract System.Collections.ObjectModel.Collection<T> NonBlockingRead ();
abstract member NonBlockingRead : unit -> System.Collections.ObjectModel.Collection<'T>
Public MustOverride Function NonBlockingRead () As Collection(Of T)

Returns

A collection of zero or more objects.

Remarks

This method performs a read of all objects currently in the stream. If there are no objects in the stream, an empty collection is returned.

Applies to

NonBlockingRead(Int32)

Reads objects currently in the stream, but does not block.

public:
 abstract System::Collections::ObjectModel::Collection<T> ^ NonBlockingRead(int maxRequested);
public abstract System.Collections.ObjectModel.Collection<T> NonBlockingRead (int maxRequested);
abstract member NonBlockingRead : int -> System.Collections.ObjectModel.Collection<'T>
Public MustOverride Function NonBlockingRead (maxRequested As Integer) As Collection(Of T)

Parameters

maxRequested
Int32

Return no more than maxRequested objects.

Returns

A collection of zero or more objects.

Remarks

This method performs a read of objects currently in the stream. If there are no objects in the stream, an empty collection is returned.

Applies to