NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

StreamWriter.AutoFlush

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);

Property Value

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.

Remarks

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.

See Also

StreamWriter Class | StreamWriter Members | System.IO Namespace