Gets a value indicating whether the stream supports writing.
Assembly: System (in System.dll)
Syntax . . :: . Boolean
true if the CompressionMode value is Compress, and the underlying stream supports writing and is not closed; otherwise, false.
Public Overrides ReadOnly Property CanWrite As Booleanpublic override bool CanWrite { get; }public:
virtual property bool CanWrite {
bool get () override;
}abstract CanWrite : bool
override CanWrite : boolProperty Value
Type: Systemtrue if the CompressionMode value is Compress, and the underlying stream supports writing and is not closed; otherwise, false.
Remarks
Notes to Inheritors
When you inherit from GZipStream, you must override the following members: CanSeek, CanWrite, and CanRead.
Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.