Redigera

Dela via


IJsonTypeInfoResolver.GetTypeInfo(Type, JsonSerializerOptions) Method

Definition

Resolves a JsonTypeInfo contract for the requested type and options.

public:
 System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ GetTypeInfo(Type ^ type, System::Text::Json::JsonSerializerOptions ^ options);
public 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
Public Function GetTypeInfo (type As Type, options As JsonSerializerOptions) As JsonTypeInfo

Parameters

type
Type

Type to be resolved.

options
JsonSerializerOptions

Configuration used when resolving the metadata.

Returns

A JsonTypeInfo instance matching the requested type, or null if no contract could be resolved.

Applies to