DevForce Help Reference
Save(Stream,Boolean,Boolean) Method


True to close the stream when done; false to leave the stream open for additional processing.
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
'Declaration
 
Public Overloads Sub Save( _
   ByVal stream As Stream, _
   Optional ByVal closeOnExit As Boolean, _
   Optional ByVal useBinaryFormat As Boolean _
) 
'Usage
 
Dim instance As EntityCacheState
Dim stream As Stream
Dim closeOnExit As Boolean
Dim useBinaryFormat As Boolean
 
instance.Save(stream, closeOnExit, 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 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