Visual Basic (Declaration) | |
---|---|
Public Overloads Sub SaveCacheState( _ ByVal entities As IEnumerable, _ ByVal fileName As String, _ Optional ByVal useBinaryFormat As Boolean _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CacheStateManager Dim entities As IEnumerable Dim fileName As String Dim useBinaryFormat As Boolean instance.SaveCacheState(entities, fileName, useBinaryFormat) |
C# | |
---|---|
public void SaveCacheState( IEnumerable entities, string fileName, bool useBinaryFormat ) |
C++/CLI | |
---|---|
public: void SaveCacheState( IEnumerable^ entities, String^ fileName, bool useBinaryFormat ) |
Parameters
- entities
- List of entities
- 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.
The specified entities and the current state of the EntityManager will be saved to the specified file 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