JsonObjectInfoValues<T>.SerializeHandler 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定類別或結構實例的序列化實作,這個實例會假設 所 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)
屬性值
備註
此 API 可供 System.Text.Json 來源產生器的輸出使用,不應直接呼叫。