GZipStream.CanWrite Property
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.
Gets a value indicating whether the stream supports writing.
public:
virtual property bool CanWrite { bool get(); };
public override bool CanWrite { get; }
member this.CanWrite : bool
Public Overrides ReadOnly Property CanWrite As Boolean
Property Value
true
if the CompressionMode value is Compress
and the underlying stream supports writing and is not closed; otherwise, false
.
Notes to Inheritors
When you inherit from GZipStream, you must override the following members: CanSeek, CanWrite, and CanRead.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.