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



entityCacheState
EntityCacheState object to be merged
Restores the EntityManager cache state from either a stream or file. Merges an EntityCacheState into this EntityManager using the NormalRestoreStrategy.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub RestoreCacheState( _
   ByVal entityCacheState As EntityCacheState _
) 
Visual Basic (Usage)Copy Code
Dim instance As CacheStateManager
Dim entityCacheState As EntityCacheState
 
instance.RestoreCacheState(entityCacheState)
C# 
public void RestoreCacheState( 
   EntityCacheState entityCacheState
)
C++/CLI 
public:
void RestoreCacheState( 
   EntityCacheState^ entityCacheState
) 

Parameters

entityCacheState
EntityCacheState object to be merged

Remarks

The entityCacheState provided can be an EntityCacheState deserialized using the EntityCacheState.Restore method or an EntityCacheState created from another 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.