DevForce Help Reference
Save(String,Boolean) Method


Fully-qualified name of file
True to save the file in binary format, false to save in text format.
Saves the EntityCacheState to a file.
Syntax
'Declaration
 
Public Overloads Sub Save( _
   ByVal fileName As String, _
   Optional ByVal useBinaryFormat As Boolean _
) 
'Usage
 
Dim instance As EntityCacheState
Dim fileName As String
Dim useBinaryFormat As Boolean
 
instance.Save(fileName, useBinaryFormat)
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.
Exceptions
ExceptionDescription
System.UnauthorizedAccessExceptionThe exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.
System.Security.SecurityExceptionThe exception that is thrown when a security error is detected.
System.IO.IOExceptionThe exception that is thrown when an I/O error occurs.
Remarks
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.
Requirements

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

See Also

Reference

EntityCacheState Class
EntityCacheState Members
Overload List

Send Feedback