PowerTCP FTP for .NET
Flush Method (ZStream)



Updates the underlying repository with the current state of the buffer and then clears the buffer.
Syntax
Public Overrides Sub Flush() 
Dim instance As ZStream
 
instance.Flush()
public override void Flush()
public:
void Flush(); override 
Exceptions
ExceptionDescription
System.IO.IOExceptionAn I/O error occurs.
System.ObjectDisposedExceptionThe Stream is closed.
Remarks

If the Stream contains any internal Streams as members, this method will also cause the Flush method of all internal Streams.

This method MUST be called when writing is complete for operations to operate properly. One example is when creating a message comprised of only headers. If Flush is not called, the headers will be lost.

See Also

Reference

ZStream Class
ZStream Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic