IJsonTypeInfoResolver.GetTypeInfo(Type, JsonSerializerOptions) メソッド

定義

JsonTypeInfo要求された型とオプションのコントラクトを解決します。

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

パラメーター

type
Type

解決する型。

options
JsonSerializerOptions

メタデータを解決するときに使用される構成。

戻り値

JsonTypeInfo要求された型に一致するインスタンス。コントラクトnullを解決できない場合は 。

適用対象