IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > CacheStateManager Class > SaveCacheState Method : SaveCacheState(Stream,Boolean,Boolean) Method |
'Declaration
Public Overloads Sub SaveCacheState( _ ByVal stream As Stream, _ Optional ByVal closeOnExit As Boolean, _ Optional ByVal useBinaryFormat As Boolean _ )
'Usage
Dim instance As CacheStateManager Dim stream As Stream Dim closeOnExit As Boolean Dim useBinaryFormat As Boolean instance.SaveCacheState(stream, closeOnExit, useBinaryFormat)
public void SaveCacheState( Stream stream, bool closeOnExit, bool useBinaryFormat )
You can use a System.Security.Cryptography.CryptoStream with this method to create an encrypted output file.
In Silverlight and other applications running with reduced privileges, you can use an System.IO.IsolatedStorageFileStream with this method.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2