PipelineReader<T>.Read 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.
Overloads
Read() |
Read a single object from the stream. |
Read(Int32) |
Read at most |
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
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.