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 無法解析合約,則為 。

適用於