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



entities
List of entities
fileName
Name of file to use. Will be overwritten if it exists.
useBinaryFormat
True to save the file in binary format; false to use text format.
Stores the state of this EntityManager and the specified entities to a file system file.

Syntax

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

Parameters

entities
List of entities
fileName
Name of file to use. Will be overwritten if it exists.
useBinaryFormat
True to save the file in binary format; false to use text format.

Exceptions

Remarks

The specified entities and the current state of the EntityManager will be saved to the specified file in either binary or text format. The user must have write permissions to the folder, and if the file exists it will be overwritten.

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.