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

適用対象