CryptoStream.FlushFinalBlock Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Updates the underlying data source or repository with the current state of the buffer, and then clears the buffer.
Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Sub FlushFinalBlock
public void FlushFinalBlock()
Exceptions
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. |
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also