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