Visual Basic (Declaration) | |
---|---|
Public Overloads Sub SaveCacheState( _ ByVal fileName As String, _ Optional ByVal useBinaryFormat As Boolean _ ) |
Visual Basic (Usage) | ![]() |
---|---|
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.
Exception | Description |
---|---|
System.UnauthorizedAccessException | |
System.Security.SecurityException | |
System.IO.IOException |
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.
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