PipeReader.AsStream(Boolean) Method

Definition

Returns a Stream representation of the PipeReader.

public virtual System.IO.Stream AsStream (bool leaveOpen = false);

Parameters

leaveOpen
Boolean

An optional flag that indicates whether disposing the returned Stream leaves PipeReader open (true) or completes PipeReader (false).

Returns

A stream that represents the PipeReader.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)