See Also

SymmetricCryptoStream Class  | SymmetricCryptoStream Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerTCP SSL Sockets for .NET

Flush Method

Dart.PowerTCP.SslSockets Namespace > SymmetricCryptoStream Class : Flush Method (SymmetricCryptoStream)

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

[Visual Basic]
Overrides Public Sub Flush()
[C#]
public override void Flush();
[C++]
public: void Flush(); override
[C++/CLI]
public: void Flush(); override

Exceptions

ExceptionDescription
IOExceptionAn I/O error occurs.
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

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SymmetricCryptoStream Class  | SymmetricCryptoStream Members


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.