JsonSerializerOptions.TypeInfoResolverChain プロパティ

定義

このインスタンスで使用されるチェーン コントラクト JsonTypeInfo リゾルバーの一覧を取得します。

public:
 property System::Collections::Generic::IList<System::Text::Json::Serialization::Metadata::IJsonTypeInfoResolver ^> ^ TypeInfoResolverChain { System::Collections::Generic::IList<System::Text::Json::Serialization::Metadata::IJsonTypeInfoResolver ^> ^ get(); };
public System.Collections.Generic.IList<System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver> TypeInfoResolverChain { get; }
member this.TypeInfoResolverChain : System.Collections.Generic.IList<System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver>
Public ReadOnly Property TypeInfoResolverChain As IList(Of IJsonTypeInfoResolver)

プロパティ値

注釈

チェーンの順序は重要です。 JsonSerializerOptions 各リゾルバーは指定した順序でクエリを実行し、null 以外の最初の結果を返します。 チェーン内のすべてのリゾルバーが を返す null場合は、 JsonSerializerOptions も を返します null

このプロパティは の補助であり、 プロパティと同期されます TypeInfoResolver 。 このプロパティに対して行われた変更は、 によって TypeInfoResolver 反映され、その逆も反映されます。

適用対象