DeflateStream::CanRead Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a value indicating whether the stream supports reading while decompressing a file.

Namespace:   System.IO.Compression
Assembly:  System (in System.dll)

property bool CanRead {
	virtual bool get() override;

Property Value

Type: System::Boolean

true if the CompressionMode value is Decompress, and the underlying stream is opened and supports reading; otherwise, false.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top