語言

JsonPropertyInfo.ObjectCreationHandling 屬性

定義

會取得或設定一個值,指示在反序列化過程中該屬性或欄位是否應該被替換或填入。

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)

屬性值

備註

此屬性的初始值是根據屬性在物件上的存在 JsonObjectCreationHandlingAttribute 來決定的。 當 null時,有效處理會根據屬性轉換器能填充的能力,以及包含的型別 PreferredPropertyObjectCreationHandling 和 PreferredObjectCreationHandling 值來解析。

適用於