IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityCacheState Class > Restore Method : Restore(String,Boolean) Method |
'Declaration
Public Overloads Shared Function Restore( _ ByVal fileName As String, _ Optional ByVal useBinaryFormat As Boolean _ ) As EntityCacheState
'Usage
Dim fileName As String Dim useBinaryFormat As Boolean Dim value As EntityCacheState value = EntityCacheState.Restore(fileName, useBinaryFormat)
public static EntityCacheState Restore( string fileName, bool useBinaryFormat )
Note that this method does not merge the EntityCacheState into an EntityManager. Call Merge or CacheStateManager.RestoreCacheState(EntityCacheState) for this. Instead of performing the Restore and merge/restore as separate steps, you can instead use CacheStateManager.RestoreCacheState(string) to accomplish the same thing.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2