แก้ไข

แชร์ผ่าน


JsonPropertyInfo.ObjectCreationHandling Property

Definition

Gets or sets a value indicating if the property or field should be replaced or populated during deserialization.

public:
 property Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> ObjectCreationHandling { Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> get(); void set(Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> value); };
public System.Text.Json.Serialization.JsonObjectCreationHandling? ObjectCreationHandling { get; set; }
member this.ObjectCreationHandling : Nullable<System.Text.Json.Serialization.JsonObjectCreationHandling> with get, set
Public Property ObjectCreationHandling As Nullable(Of JsonObjectCreationHandling)

Property Value

Remarks

The initial value for this property is based on the presence of the JsonObjectCreationHandlingAttribute attribute on the property. When null, effective handling is resolved based on the capability of the property converter to populate, and the containing type's PreferredPropertyObjectCreationHandling and PreferredObjectCreationHandling values.

Applies to