This documentation is archived and is not being maintained.

CryptoStream.FlushFinalBlock Method

Updates the underlying data source or repository with the current state of the buffer, then clears the buffer.

[Visual Basic]
Public Sub FlushFinalBlock()
public void FlushFinalBlock();
public: void FlushFinalBlock();
public function FlushFinalBlock();


Exception Type Condition
NotSupportedException The current stream is not writable.


The final block has already been transformed.


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

CryptoStream Class | CryptoStream Members | System.Security.Cryptography Namespace | Cryptographic Services