SerializationFormat 枚举

定义

确定 DataSet 的序列化格式。Determines the serialization format for a DataSet.

public enum class SerializationFormat
public enum SerializationFormat
type SerializationFormat = 
Public Enum SerializationFormat
继承
SerializationFormat

字段

Binary 1

作为二进制内容序列化。Serialize as binary content. 仅可在 ADO.NET 2.0 中使用。Available in ADO.NET 2.0 only.

Xml 0

作为 XML 内容序列化。Serialize as XML content. 默认值。The default.

注解

Microsoft ADO.NET 2.0 引入了将序列化为DataSet二进制内容的功能。Microsoft ADO.NET 2.0 introduces the ability to serialize a DataSet as binary content. Microsoft .NET Framework 的早期版本不支持二进制序列化。Earlier versions of the Microsoft .NET Framework do not support binary serialization.

默认格式为 Xml。The default format is Xml. 这是向后兼容, 适用于所有版本的 .NET Framework。This is backward compatible and will work with all versions of the .NET Framework.

适用于