IdeaBlade DevForce 2010 Help Reference
Save(String,Boolean) Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityCacheState Class > Save Method : Save(String,Boolean) Method



fileName
Fully-qualified name of file
useBinaryFormat
True to save the file in binary format, false to save in text format.
Saves the EntityCacheState to a file.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Save( _
   ByVal fileName As String, _
   Optional ByVal useBinaryFormat As Boolean _
) 
Visual Basic (Usage)Copy Code
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.

Exceptions

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 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

See Also

© 2013 All Rights Reserved.