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



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 cached entities to a stream or file. Stores the state of this EntityManager and all cached entities to a file system file.

Syntax

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

Parameters

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

All entities in the EntityManager cache will be saved to the file specified. The file will contain the cache and current state 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.