PowerTCP Mail for .NET
Flush Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MessageStream Class : Flush Method




Updates the underlying repository with the current state of the buffer and then clears the buffer.

Syntax

Visual Basic (Declaration) 
Public Overrides Sub Flush() 
Visual Basic (Usage)Copy Code
Dim instance As MessageStream
 
instance.Flush()
C# 
public override void Flush()
Managed Extensions for C++ 
public: void Flush(); override 
C++/CLI 
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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.