PowerTCP SSH and SFTP for .NET
Flush Method (BaseStream)




Updates the underlying repository with the current state of the buffer and then clears the buffer.
Syntax
'Declaration
 
Public Overrides Sub Flush() 
'Usage
 
Dim instance As BaseStream
 
instance.Flush()
public override void Flush()
public: void Flush(); override 
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

BaseStream Class
BaseStream Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic