FCFL.NET Common Library - API Reference
WriteBinary Method

The DataSet to write to the stream
The stream which will receive the binary from the DataSet
Writes a DataSet to a binary stream
Syntax
'Declaration
 
Public Shared Sub WriteBinary( _
   ByVal ds As DataSet, _
   ByVal str As Stream _
) 
public static void WriteBinary( 
   DataSet ds,
   Stream str
)

Parameters

ds
The DataSet to write to the stream
str
The stream which will receive the binary from the DataSet
Remarks

WriteBinary writes the DataSet using a specific binary encoding scheme which can only be read by ReadBinary.

WriteBinary encodes the version of DataSetSurrogate that was used to produce the stream so as to avoid version and binary format conflicts with newer or older versions. If ReadBinary encounters a newer or older stream, it will return null signifying that the cache data is no longer valid and needs to be refreshed.

IMPORTANT: The ReadBinary and WriteBinary methods only support simple DataSets with tables, columns, rows (with data) and relationships. All other information will be lost. This includes keys, constraints, extended properties, etc

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Reference

DataSetSurrogate Class
DataSetSurrogate Members

 

 


© 2010 Dovetail Software, Inc. - All rights reserved.
- Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
- .NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.

Send comments on this topic.