DefaultJsonTypeInfoResolver.GetTypeInfo(Type, JsonSerializerOptions) Methode

Definitie

Lost een JSON-contract voor een bepaalde type en options configuratie op.

public:
 virtual System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ GetTypeInfo(Type ^ type, System::Text::Json::JsonSerializerOptions ^ options);
public virtual System.Text.Json.Serialization.Metadata.JsonTypeInfo GetTypeInfo(Type type, System.Text.Json.JsonSerializerOptions options);
abstract member GetTypeInfo : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
override this.GetTypeInfo : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
Public Overridable Function GetTypeInfo (type As Type, options As JsonSerializerOptions) As JsonTypeInfo

Parameters

type
Type

Het type waarvoor een JSON-contract moet worden omgezet.

options
JsonSerializerOptions

Een JsonSerializerOptions exemplaar dat wordt gebruikt om de contractconfiguratie te bepalen.

Retouren

Een JsonTypeInfo definitie van een door reflectie afgeleid JSON-contract voor type.

Implementeringen

Uitzonderingen

type of options is null.

Opmerkingen

De basisuitvoering van deze methode produceert een weerspiegelingscontract en past eventuele callbacks uit de Modifiers lijst toe.

Van toepassing op