共用方式為


JsonObjectInfoValues<T>.SerializeHandler 屬性

定義

取得或設定類別或結構實例的序列化實作,這個實例會假設 所 JsonSourceGenerationOptionsAttribute 指定的選項。

public:
 property Action<System::Text::Json::Utf8JsonWriter ^, T> ^ SerializeHandler { Action<System::Text::Json::Utf8JsonWriter ^, T> ^ get(); void set(Action<System::Text::Json::Utf8JsonWriter ^, T> ^ value); };
public Action<System.Text.Json.Utf8JsonWriter,T>? SerializeHandler { get; init; }
member this.SerializeHandler : Action<System.Text.Json.Utf8JsonWriter, 'T> with get, set
Public Property SerializeHandler As Action(Of Utf8JsonWriter, T)

屬性值

Action<Utf8JsonWriter,T>

備註

此 API 可供 System.Text.Json 來源產生器的輸出使用,不應直接呼叫。

適用於