JsonTypeInfo.OnSerialized 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在序列化完成後,會取得或設定回調。
public:
property Action<System::Object ^> ^ OnSerialized { Action<System::Object ^> ^ get(); void set(Action<System::Object ^> ^ value); };
public Action<object>? OnSerialized { get; set; }
member this.OnSerialized : Action<obj> with get, set
Public Property OnSerialized As Action(Of Object)
屬性值
例外狀況
備註
對於來自 DefaultJsonTypeInfoResolver 或 JsonSerializerContext的合約,該回調的值將從該型別上的任何 IJsonOnSerialized 實作映射而來。