JsonObjectCreationHandling Enum

Definition

Determines how deserialization will handle object creation for fields or properties.

C#
public enum JsonObjectCreationHandling
Inheritance
JsonObjectCreationHandling

Fields

Name Value Description
Replace 0

A new instance will always be created when deserializing a field or property.

Populate 1

Attempt to populate any instances already found on a deserialized field or property.

Applies to

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