Bewerken

Share via


GZipStream.CanWrite Property

Definition

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