JsonSerializerOptions.TypeInfoResolver 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 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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET