DefaultJsonTypeInfoResolver.GetTypeInfo(Type, JsonSerializerOptions) Méthode

Définition

Résout un contrat JSON pour une configuration donnéetype.options

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

Paramètres

type
Type

Type pour lequel résoudre un contrat JSON.

options
JsonSerializerOptions

Instance JsonSerializerOptions utilisée pour déterminer la configuration du contrat.

Retours

Définition JsonTypeInfo d’un contrat JSON dérivé de réflexion pour type.

Implémente

Exceptions

type ou options est null.

Remarques

L’implémentation de base de cette méthode produit un contrat dérivé de réflexion et applique les rappels de la Modifiers liste.

S’applique à