JsonSerializerOptions.TypeInfoResolverChain Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the list of chained JsonTypeInfo contract resolvers used by this instance.
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)
Property Value
Remarks
The ordering of the chain is significant: JsonSerializerOptions will query each of the resolvers in their specified order, returning the first result that is non-null. If all resolvers in the chain return null
, then JsonSerializerOptions will also return null
.
This property is auxiliary to and is kept in sync with the TypeInfoResolver property. Any change made to this property is reflected by TypeInfoResolver and vice versa.