Visual Basic (Declaration) | |
---|---|
Public Overloads Sub Save( _ ByVal fileName As String, _ Optional ByVal useBinaryFormat As Boolean _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As EntityCacheState Dim fileName As String Dim useBinaryFormat As Boolean instance.Save(fileName, useBinaryFormat) |
C# | |
---|---|
public void Save( string fileName, bool useBinaryFormat ) |
C++/CLI | |
---|---|
public: void Save( String^ fileName, bool useBinaryFormat ) |
Parameters
- fileName
- Fully-qualified name of file
- useBinaryFormat
- True to save the file in binary format, false to save in text format.
Exception | Description |
---|---|
System.UnauthorizedAccessException | |
System.Security.SecurityException | |
System.IO.IOException |
The EntityCacheState is serialized to the file in binary format by default; set parameter useBinaryFormat to false to save the file in text format. The user must have write permissions to the directory, 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