PipeReader.AsStream(Boolean) Method
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.
Returns a Stream representation of the PipeReader.
public virtual System.IO.Stream AsStream (bool leaveOpen = false);
abstract member AsStream : bool -> System.IO.Stream
override this.AsStream : bool -> System.IO.Stream
Public Overridable Function AsStream (Optional leaveOpen As Boolean = false) As Stream
- leaveOpen
- Boolean
An optional flag that indicates whether disposing the returned Stream leaves PipeReader open (true
) or completes PipeReader (false
).
A stream that represents the PipeReader.
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) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: