다음을 통해 공유


PipelineReader<T>.Read Method

Definition

Overloads

Read()

Read a single object from the stream.

Read(Int32)

Read at most count objects.

Read()

Read a single object from the stream.

public:
 abstract T Read();
public abstract T Read ();
abstract member Read : unit -> 'T
Public MustOverride Function Read () As T

Returns

T

The next object in the stream.

Remarks

This method blocks if the stream is empty

Applies to

Read(Int32)

Read at most count objects.

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

Parameters

count
Int32

The maximum number of objects to read.

Returns

The objects read.

Remarks

This method blocks if the number of objects in the stream is less than count and the stream is not closed.

Applies to