JsonUnmappedMemberHandling Enum

Definition

Determines how JsonSerializer handles JSON properties that cannot be mapped to a specific .NET member when deserializing object types.

C#
public enum JsonUnmappedMemberHandling
Inheritance
JsonUnmappedMemberHandling

Fields

Name Value Description
Skip 0

Silently skips any unmapped properties. This is the default behavior.

Disallow 1

Throws an exception when an unmapped property is encountered.

Applies to

Product Versions
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)