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



stream
closeOnExit
True to close the stream when done; false to leave the stream open for additional processing.
useBinaryFormat
True to save the file in binary format, false to save in text format.
Saves the EntityCacheState to a Stream, optionally closing the stream when done.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Save( _
   ByVal stream As Stream, _
   Optional ByVal closeOnExit As Boolean, _
   Optional ByVal useBinaryFormat As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As EntityCacheState
Dim stream As Stream
Dim closeOnExit As Boolean
Dim useBinaryFormat As Boolean
 
instance.Save(stream, closeOnExit, useBinaryFormat)
C# 
public void Save( 
   Stream stream,
   bool closeOnExit,
   bool useBinaryFormat
)
C++/CLI 
public:
void Save( 
   Stream^ stream,
   bool closeOnExit,
   bool useBinaryFormat
) 

Parameters

stream
closeOnExit
True to close the stream when done; false to leave the stream open for additional processing.
useBinaryFormat
True to save the file in binary format, false to save in text format.

Remarks

The EntityCacheState can be serialized to the stream in either binary or text format.

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.