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



entityCacheState
EntityCacheState to be merged
strategy
The restore strategy to use
Merges an EntityCacheState into this EntityManager using the RestoreStrategy specified.

Syntax

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

Parameters

entityCacheState
EntityCacheState to be merged
strategy
The restore strategy to use

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.