CryptoStream.FlushFinalBlock Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Updates the underlying data source or repository with the current state of the buffer, and then clears the buffer.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| CryptographicException | The key is corrupt, which can cause invalid padding to the stream. |
| NotSupportedException | The current stream is not writable. -or- The final block has already been transformed. |
Show: