Skip to content

Commit 69e1b99

Browse files
authored
SerializationFormat.Binary is obsolete (#7841)
1 parent 13425c2 commit 69e1b99

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

xml/System.Data/SerializationFormat.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@
3838
<remarks>
3939
<format type="text/markdown"><![CDATA[
4040
41-
## Remarks
42-
Microsoft ADO.NET 2.0 introduces the ability to serialize a <xref:System.Data.DataSet> as binary content. Earlier versions of the Microsoft .NET Framework do not support binary serialization.
43-
44-
The default format is Xml. This is backward compatible and will work with all versions of the .NET Framework.
45-
41+
## Remarks
42+
43+
Microsoft ADO.NET 2.0 introduced the ability to serialize a <xref:System.Data.DataSet> as binary content. Earlier versions of .NET Framework did not support binary serialization. The `Binary` field is obsolete starting in .NET 7, because it relies on <xref:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter>, which is inherently insecure.
44+
45+
The default format is `Xml`. This format is backward compatible and will work with all versions of .NET.
46+
4647
]]></format>
4748
</remarks>
4849
</Docs>
@@ -80,7 +81,7 @@
8081
</ReturnValue>
8182
<MemberValue>1</MemberValue>
8283
<Docs>
83-
<summary>Serialize as binary content. Available in ADO.NET 2.0 only.</summary>
84+
<summary>Serialize as binary content. Available in ADO.NET 2.0 and later versions only. This field is obsolete starting in .NET 7.</summary>
8485
</Docs>
8586
</Member>
8687
<Member MemberName="Xml">

0 commit comments

Comments
 (0)