IdeaBlade DevForce 2010 Help Reference
SaveCacheState(IEnumerable,Stream,Boolean,Boolean) Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > CacheStateManager Class > SaveCacheState Method : SaveCacheState(IEnumerable,Stream,Boolean,Boolean) Method



entities
List of entities
stream
Stream to be written to.
closeOnExit
Whether or not to close the stream on exiting this method.
useBinaryFormat
True to save the data in binary format; false to use text format.
Stores the state of this EntityManager and the specified entities to a stream.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub SaveCacheState( _
   ByVal entities As IEnumerable, _
   ByVal stream As Stream, _
   Optional ByVal closeOnExit As Boolean, _
   Optional ByVal useBinaryFormat As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As CacheStateManager
Dim entities As IEnumerable
Dim stream As Stream
Dim closeOnExit As Boolean
Dim useBinaryFormat As Boolean
 
instance.SaveCacheState(entities, stream, closeOnExit, useBinaryFormat)
C# 
public void SaveCacheState( 
   IEnumerable entities,
   Stream stream,
   bool closeOnExit,
   bool useBinaryFormat
)
C++/CLI 
public:
void SaveCacheState( 
   IEnumerable^ entities,
   Stream^ stream,
   bool closeOnExit,
   bool useBinaryFormat
) 

Parameters

entities
List of entities
stream
Stream to be written to.
closeOnExit
Whether or not to close the stream on exiting this method.
useBinaryFormat
True to save the data in binary format; false to use text format.

Remarks

The current state of the EntityManager and the specified entities will be saved to the stream in binary format.

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.

Requirements

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

See Also

© 2013 All Rights Reserved.