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



fileName
Name of file to read.
useBinaryFormat
True to restore a file in binary format; false if using text format.
Restores entities from a file system file into this EntityManager using the NormalRestoreStrategy.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub RestoreCacheState( _
   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.RestoreCacheState(fileName, useBinaryFormat)
C# 
public void RestoreCacheState( 
   string fileName,
   bool useBinaryFormat
)
C++/CLI 
public:
void RestoreCacheState( 
   String^ fileName,
   bool useBinaryFormat
) 

Parameters

fileName
Name of file to read.
useBinaryFormat
True to restore a file in binary format; false if using text format.

Exceptions

Remarks

This loads an EntityCacheState from the file and then performs an Merge into this EntityManager.

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.