편집

다음을 통해 공유


JsonSerializerOptions.TypeInfoResolver Property

Definition

Gets or sets the JsonTypeInfo contract resolver used by this instance.

public:
 property System::Text::Json::Serialization::Metadata::IJsonTypeInfoResolver ^ TypeInfoResolver { System::Text::Json::Serialization::Metadata::IJsonTypeInfoResolver ^ get(); void set(System::Text::Json::Serialization::Metadata::IJsonTypeInfoResolver ^ value); };
public System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver? TypeInfoResolver { get; set; }
member this.TypeInfoResolver : System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver with get, set
Public Property TypeInfoResolver As IJsonTypeInfoResolver

Property Value

Exceptions

The property is set after serialization or deserialization has occurred.

Remarks

A null setting is equivalent to using the reflection-based DefaultJsonTypeInfoResolver. The property will be populated automatically once used with one of the JsonSerializer methods.

Applies to