Determines whether the encoder obtained from the Encoding object will flush or maintain its internal state after encoding a sequence of characters.
[Visual Basic] Overridable Public Property AutoFlush As Boolean [C#] public bool AutoFlush {virtual get; virtual set;} [C++] public: __property virtual bool get_AutoFlush(); public: __property virtual void set_AutoFlush(bool); [JScript] public function get AutoFlush() : Boolean; public function set AutoFlush(Boolean);
true if the Encoder resets its internal state after encoding a sequence of characters received from the invocation of a write method.
false if the Encoder maintains its state between successive calls to a write.
StreamWriter would maintain its internal state in order to correctly encode character sequences received from successive calls to the Write methods.
This property does not automate the Flush method, which is called by the Write methods when the buffer reaches maximum capacity.
StreamWriter Class | StreamWriter Members | System.IO Namespace