Skip to content

Commit 7c702bb

Browse files
authored
Automatic port of System.Text.Json exceptions (dotnet#4660)
Co-authored-by: carlossanlop <[email protected]>
1 parent f681fd9 commit 7c702bb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

xml/System.Text.Json/JsonSerializerOptions.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Type Name="JsonSerializerOptions" FullName="System.Text.Json.JsonSerializerOptions">
1+
<Type Name="JsonSerializerOptions" FullName="System.Text.Json.JsonSerializerOptions">
22
<TypeSignature Language="C#" Value="public sealed class JsonSerializerOptions" />
33
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit JsonSerializerOptions extends System.Object" />
44
<TypeSignature Language="DocId" Value="T:System.Text.Json.JsonSerializerOptions" />
@@ -218,6 +218,12 @@ We recommend that you leave this value unchanged unless changing it makes an obs
218218
The default value is <see cref="F:System.Text.Json.Serialization.JsonIgnoreCondition.Never" />.</summary>
219219
<value>To be added.</value>
220220
<remarks>To be added.</remarks>
221+
<exception cref="T:System.ArgumentException">This property is set to <see cref="F:System.Text.Json.Serialization.JsonIgnoreCondition.Always" />.</exception>
222+
<exception cref="T:System.InvalidOperationException">This property is set after serialization or deserialization has occurred.
223+
224+
-or-
225+
226+
<see cref="P:System.Text.Json.JsonSerializerOptions.IgnoreNullValues" /> has been set to <see langword="true" />. These properties cannot be used together.</exception>
221227
</Docs>
222228
</Member>
223229
<Member MemberName="DictionaryKeyPolicy">
@@ -355,7 +361,11 @@ For more information, see [Exclude all null value properties](/dotnet/standard/s
355361
356362
]]></format>
357363
</remarks>
358-
<exception cref="T:System.InvalidOperationException">This property was set after serialization or deserialization has occurred.</exception>
364+
<exception cref="T:System.InvalidOperationException">This property was set after serialization or deserialization has occurred.
365+
366+
-or-
367+
368+
<see cref="P:System.Text.Json.JsonSerializerOptions.DefaultIgnoreCondition" /> has been set to a non-default value. These properties cannot be used together.</exception>
359369
</Docs>
360370
</Member>
361371
<Member MemberName="IgnoreReadOnlyProperties">

0 commit comments

Comments
 (0)